function subscribe
thefrontside/effectionfunction subscribe<T, R>(iter: AsyncIterator<T, R>): Subscription<T, R>
Convert any AsyncIterator
into an effection https://effection-www-pggsafb7y58a.deno.dev/api/v3/Subscription
This allows you to consume any AsyncIterator
as a https://effection-www-pggsafb7y58a.deno.dev/api/v3/Subscription.
Type Parameters
T
R
Parameters
iter: AsyncIterator<T, R>
- the iterator to convert
Return Type
https://effection-www-pggsafb7y58a.deno.dev/api/v3/Subscription<T, R>
a subscription that will produce each item of iter