@esfx/async-iter-fromsync
An API to convert an ECMAScript Iterable into an AsyncIterable.
Overview
Installation
npm i @esfx/async-iter-fromsync
Usage
import { toAsyncIterable } from "@esfx/async-iter-fromsync";
async function f<T>(source: AsyncIterable<T> | Iterable<T | PromiseLike<T>>) {
const asyncIterable = toAsyncIterable(source);
...
}
API
You can read more about the API here.