mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 13:41:05 +00:00
Update task.js
This commit is contained in:
parent
b08a9477e6
commit
466c46e6a7
|
@ -231,15 +231,10 @@ function Promise(executor) {
|
||||||
this.executor(this.resolve, this.reject);
|
this.executor(this.resolve, this.reject);
|
||||||
}
|
}
|
||||||
|
|
||||||
function castToTask(f) {
|
|
||||||
return new Task(f, 0);
|
|
||||||
};
|
|
||||||
|
|
||||||
exports.__taskQueue__ = __taskQueue__;
|
exports.__taskQueue__ = __taskQueue__;
|
||||||
exports.setTimeout = setTimeout;
|
exports.setTimeout = setTimeout;
|
||||||
exports.setInterval = setInterval;
|
exports.setInterval = setInterval;
|
||||||
exports.Promise = Promise;
|
exports.Promise = Promise;
|
||||||
exports.castToTask = castToTask;
|
|
||||||
////////////////////////////////////////////////////
|
////////////////////////////////////////////////////
|
||||||
// END Global functions
|
// END Global functions
|
||||||
////////////////////////////////////////////////////
|
////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue
Block a user