Converts any synchronous iterable into asynchronous one.
It makes possible to use asynchronous-only operators downstream,
while also correctly casting all types in the pipeline, avoiding
any ambiguity between synchronous and asynchronous iterables.
consti = pipe( toAsync(source), // make iterable asynchronous delay(500) // now can use asynchronous operators );
Passing it an already asynchronous iterable will just reuse it.
Converts any synchronous iterable into asynchronous one.
It makes possible to use asynchronous-only operators downstream, while also correctly casting all types in the pipeline, avoiding any ambiguity between synchronous and asynchronous iterables.