mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 00:45:14 +00:00
Update task.js
This commit is contained in:
parent
a6e8b58af8
commit
77fd7fbc77
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user