mirror of
https://github.com/koush/scrypted.git
synced 2026-02-03 06:03:27 +00:00
common: createAsyncQueueFromGenerator should not read as fast as possible.
This commit is contained in:
@@ -160,7 +160,7 @@ export function createAsyncQueueFromGenerator<T>(generator: AsyncGenerator<T>) {
|
||||
(async() => {
|
||||
try {
|
||||
for await (const i of generator) {
|
||||
q.submit(i);
|
||||
await q.enqueue(i);
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user