asyncIterable
import { asyncIterable } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/async_iterable.ts";Create an AsyncIterable from an AsyncIterator factory function.
@example
import { asyncIterable } from "./async_iterable.ts";
const asyncIter = asyncIterable(async function* () {
yield 1;
yield 2;
yield 3;
});
for await (const value of asyncIter) {
console.log(value); // 1, 2, 3
}
function asyncIterable<A>(fa: () => AsyncIterator<A>): AsyncIterable<A>;