mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-13 21: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();
|
return new TaskQueue();
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.makeTask = function(q, f, params) {
|
exports.createTask = function(q, f, params) {
|
||||||
try {
|
try {
|
||||||
if (q instanceof TaskQueue) {
|
if (q instanceof TaskQueue) {
|
||||||
return new Task(q.lastId, f, params);
|
return new Task(q.lastId, f, params);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user