UNPKG

@rimbu/stream

Version:

Efficient structure representing a sequence of elements, with powerful operations for TypeScript

10 lines (9 loc) 186 B
export async function closeIters( ...iters: (AsyncIterator<any> | undefined | null)[] ): Promise<void> { await Promise.all( iters.map((i) => { i?.return?.(); }) ); }