Update task.js

This commit is contained in:
Namhyeon Go 2021-06-23 14:31:24 +09:00 committed by GitHub
parent fba7e00b68
commit 0e74f3700e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////
// Task API (Time-sharing based `async` implementation in WSH.js) // Task API (Time-sharing based `async`, `Promise`, `setTimeout`, `setInterval` implementation in WSH.js)
///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////
/* // example: /* // example:
@ -178,4 +178,8 @@ exports.setInterval = function() {
// ... todo ... // ... todo ...
} }
}; };
exports.Promise = function() {
// ... todo ...
};
*/ */