throw in a little asynchrony

This commit is contained in:
ansuz 2020-01-23 13:27:12 -05:00
parent a0f1680e85
commit b585dd998d
1 changed files with 1 additions and 2 deletions

View File

@ -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);
});
};