We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f980f8b commit 56861aeCopy full SHA for 56861ae
src/interfaces.ts
@@ -739,7 +739,7 @@ export interface WorkerOptions extends WorkerSharedOptions {
739
*/
740
workerId?: string;
741
742
- abortSignal?: AbortSignal;
+ abortSignal: AbortSignal;
743
744
workerPool: WorkerPool;
745
src/main.ts
@@ -584,8 +584,6 @@ export function _runTaskList(
584
}
585
586
const abortController = new AbortController();
587
- // TODO: user-passed abortSignal should trigger our controller to abort
588
-
589
const abortSignal = abortController.signal;
590
const abortPromise = new Promise<void>((_resolve, reject) => {
591
abortSignal.addEventListener("abort", () => {
0 commit comments