Converts the async iterable to a promise that resolves to an array.
import { forAwait } from 'deleight/generators';async function* asyncGen() { yield *range(10);}await forAwait(asyncGen()); // [0, 1, ..., 9] Copy
import { forAwait } from 'deleight/generators';async function* asyncGen() { yield *range(10);}await forAwait(asyncGen()); // [0, 1, ..., 9]
Converts the async iterable to a promise that resolves to an array.