Update task.js

This commit is contained in:
Namhyeon Go 2021-06-23 11:21:07 +09:00 committed by GitHub
parent 60fba7eecd
commit 1810c5f59f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);