Update task.js

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

View File

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