import { default as itiriri , IterableQuery } from 'itiriri' ; export async function awaitAll < TElement > ( source ) { const buffer = [ ] ; for await ( const element of source ) { buffer . push ( element ) ; } return itiriri ( buffer ) ; }