export async function convertAsyncIterableToArray( iterable: AsyncIterable, ): Promise { const result: T[] = []; for await (const item of iterable) { result.push(item); } return result; }