Skip to content

Commit eaa63fa

Browse files
authored
fix cancellation being broken
1 parent 4666384 commit eaa63fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ class TaskQueuePool {
394394
// Cancellation isn't guaranteed, however cancellation of a task
395395
// known to have been already completed will return `false`.
396396
cancel(taskId) {
397-
const task = this.tasks[tasksId];
397+
const task = this.tasks[taskId];
398398
const resultController = this.results[taskId];
399399
if (resultController.completed || task.state==='completed') {
400400
return false;

0 commit comments

Comments
 (0)