Newer version available
You’re viewing the API reference for version 3.0.3, but the latest version is 3.1.0. The latest version include may important updates and fixes.
View Latest Versionfunction subscribe
thefrontside/effectionfunction subscribe<T, R>(iter: AsyncIterator<T, R>): Subscription<T, R>
Convert 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