Update task.js

This commit is contained in:
Namhyeon Go 2021-07-28 13:58:03 +09:00 committed by GitHub
parent b08a9477e6
commit 466c46e6a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,15 +231,10 @@ function Promise(executor) {
this.executor(this.resolve, this.reject);
}
function castToTask(f) {
return new Task(f, 0);
};
exports.__taskQueue__ = __taskQueue__;
exports.setTimeout = setTimeout;
exports.setInterval = setInterval;
exports.Promise = Promise;
exports.castToTask = castToTask;
////////////////////////////////////////////////////
// END Global functions
////////////////////////////////////////////////////