Skip to content

Commit 56861ae

Browse files
committed
That wasn't user-supplied options
1 parent f980f8b commit 56861ae

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ export interface WorkerOptions extends WorkerSharedOptions {
739739
*/
740740
workerId?: string;
741741

742-
abortSignal?: AbortSignal;
742+
abortSignal: AbortSignal;
743743

744744
workerPool: WorkerPool;
745745

src/main.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,6 @@ export function _runTaskList(
584584
}
585585

586586
const abortController = new AbortController();
587-
// TODO: user-passed abortSignal should trigger our controller to abort
588-
589587
const abortSignal = abortController.signal;
590588
const abortPromise = new Promise<void>((_resolve, reject) => {
591589
abortSignal.addEventListener("abort", () => {

0 commit comments

Comments
 (0)