We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af41766 commit f84ef49Copy full SHA for f84ef49
src/AsyncIterables.ts
@@ -302,9 +302,6 @@ export const bufferingIterable = <T>(
302
})
303
);
304
}
305
-
306
- // this micro sleep stops thrashing
307
- await sleep(1);
308
};
309
310
const nextReadyOne = async (): Promise<AsyncOptional<T> | undefined> => {
@@ -340,7 +337,7 @@ export const bufferingIterable = <T>(
340
337
await queueMore();
341
338
342
339
if (pending.size) {
343
- await Promise.race(pending.keys());
+ await Promise.race(pending.values());
344
345
346
0 commit comments