mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-11 20:21:03 +00:00
Update task.js
This commit is contained in:
parent
60fba7eecd
commit
1810c5f59f
|
@ -86,11 +86,11 @@ var TaskQueue = function() {
|
|||
};
|
||||
};
|
||||
|
||||
exports.createQueue = function() {
|
||||
exports.createTaskQueue = function() {
|
||||
return new TaskQueue();
|
||||
};
|
||||
|
||||
exports.makeTask = function(q, f, params) {
|
||||
exports.createTask = function(q, f, params) {
|
||||
try {
|
||||
if (q instanceof TaskQueue) {
|
||||
return new Task(q.lastId, f, params);
|
||||
|
|
Loading…
Reference in New Issue
Block a user