repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'INDA-330-pii-update' into 'main'
[ProtonMail-WebClient.git]
/
applications
/
drive
/
src
/
app
/
utils
/
test
/
generator.ts
blob
07ce55e8e2992d7fbd835f3e73ae65e4c40abe08
1
export async function asyncGeneratorToArray<T>(generator: AsyncGenerator<T>): Promise<T[]> {
2
const result = [];
3
for await (const item of generator) {
4
result.push(item);
5
}
6
return result;
7
}