Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
apostolos authored and rxaviers committed Mar 20, 2022
1 parent 47dee89 commit 29c1920
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/es9.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
async function* asyncPool(concurrency, iterable, iteratorFn) {
let done;
const ret = [];
const executing = new Set();
for (const item of iterable) {
const promise = Promise.resolve().then(() => iteratorFn(item, iterable));
ret.push(promise);
executing.add(promise);
const clean = () => executing.delete(promise);
promise.then(clean).catch(clean);
Expand Down

0 comments on commit 29c1920

Please sign in to comment.