Version 3.1.0 is behind the current release: jump to latest version (3.2.1).
function subscribe
thefrontside/effectionConvert any AsyncIterator
into an effection Subscription
This allows you to consume any AsyncIterator
as a Subscription.
Type Parameters
T
R
Parameters
iter: AsyncIterator<T, R>
- the iterator to convert
Return Type
Subscription<T, R>
a subscription that will produce each item of iter