export async function arrayFromAsync(asyncIterable: AsyncIterable): Promise { const array: T[] = []; for await (const i of asyncIterable) array.push(i); return array; }