UNPKG

@davidcal/fec-raptorq

Version:

Node.js wrapper for RaptorQ forward error correction

17 lines (13 loc) 319 B
/** * @stability 2 - provisional * * Collects all items from an async iterable into an array. */ export const collect_async = async (async_iterable) => { const result = []; for await (const item of await async_iterable) { result.push(item); } return result; }; export const collectAsync = collect_async;