export async function* iteratorFromArray(values: T[]): AsyncIterable { for (let i = 0; i < values.length; i++) { yield values[i]; } }