Skip to content

Commit

Permalink
Update lib.js
Browse files Browse the repository at this point in the history
  • Loading branch information
txthinking authored Sep 20, 2024
1 parent 1f441b3 commit dc47858
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ export default {
});
},

setImmediatePromise: function {
return new Promise((resolve) => {
setImmediate(() => resolve());
});
},

// async lock, js lock, js mutex, js sync, js queue
// var sync = new Sync();
// await sync.atomic(async () => {});
Expand Down

0 comments on commit dc47858

Please sign in to comment.