mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-11-27 18:11:20 +00:00
Update task.js
This commit is contained in:
parent
02138ab366
commit
b08a9477e6
|
|
@ -231,10 +231,15 @@ 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