Update task.js

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

View File

@ -90,7 +90,7 @@ exports.createTaskQueue = function() {
return new TaskQueue(); return new TaskQueue();
}; };
exports.createTask = function(q, f, params) { exports.buildTask = 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);