Performs the given action for all items of the async iterable.
Optional
import { forEachAsync } from 'deleight/generators';async function* asyncGen() { yield *range(10);}forEachAsync(asyncGen(), ()=> console.log(i)); Copy
import { forEachAsync } from 'deleight/generators';async function* asyncGen() { yield *range(10);}forEachAsync(asyncGen(), ()=> console.log(i));
Performs the given action for all items of the async iterable.