Browse Source

throw in a little asynchrony

master
ansuz 1 year ago
parent
commit
b585dd998d
1 changed files with 1 additions and 2 deletions
  1. 3
      lib/schedule.js

3
lib/schedule.js

@ -68,7 +68,6 @@ var isEmpty = function (map) {
return true;
};
// XXX enforce asynchrony everywhere
module.exports = function () {
// every scheduler instance has its own queue
var queue = WriteQueue();
@ -111,7 +110,7 @@ module.exports = function () {
if (typeof(local.waiting) !== 'function') {
return void collectGarbage();
}
local.waiting();
setTimeout(local.waiting);
});
};

Loading…
Cancel
Save