Update task.js

This commit is contained in:
Namhyeon Go 2021-06-23 12:05:39 +09:00 committed by GitHub
parent a6e8b58af8
commit 77fd7fbc77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,12 +4,12 @@
/* // example:
* // var TASK = require("lib/task");
* // var queue = TASK.createTaskQueue();
* // var taskQueue = TASK.createTaskQueue();
* // TASK.putTask(queue, function() { console.log('123'); }, [1, 2, 3])
* // .then(createTask(function() { console.log('456'); }, [4, 5, 6]))
* // .then(createTask(function() { TASK.stop(); console.log('789'); }, [7, 8, 9]))
* // ;
* // queue.run();
* // taskQueue.run();
*/
var Task = function(f, params)