Skip to content

Commit

Permalink
That wasn't user-supplied options
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Nov 22, 2024
1 parent f980f8b commit 56861ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ export interface WorkerOptions extends WorkerSharedOptions {
*/
workerId?: string;

abortSignal?: AbortSignal;
abortSignal: AbortSignal;

workerPool: WorkerPool;

Expand Down
2 changes: 0 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,6 @@ export function _runTaskList(
}

const abortController = new AbortController();
// TODO: user-passed abortSignal should trigger our controller to abort

const abortSignal = abortController.signal;
const abortPromise = new Promise<void>((_resolve, reject) => {
abortSignal.addEventListener("abort", () => {
Expand Down

0 comments on commit 56861ae

Please sign in to comment.