update, text, response
This commit is contained in:
4
node_modules/timers-ext/promise/.eslintrc.json
generated
vendored
4
node_modules/timers-ext/promise/.eslintrc.json
generated
vendored
@@ -1,3 +1 @@
|
||||
{
|
||||
"globals": { "Promise": true }
|
||||
}
|
||||
{ "globals": { "Promise": true } }
|
||||
|
||||
4
node_modules/timers-ext/promise/sleep.js
generated
vendored
4
node_modules/timers-ext/promise/sleep.js
generated
vendored
@@ -11,9 +11,7 @@ module.exports = function (/* timeout */) {
|
||||
if (isValue(timeout)) timeout = ensureTimeout(timeout);
|
||||
return new Constructor(function (resolve) {
|
||||
if (isValue(timeout)) {
|
||||
setTimeout(function () {
|
||||
resolve();
|
||||
}, timeout);
|
||||
setTimeout(function () { resolve(); }, timeout);
|
||||
} else {
|
||||
nextTick(resolve);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user