Skip to content
0

katanakit-js / useTerminate

Function: useTerminate() ​

ts
function useTerminate(key): void;

Defined in: src/infrastructure/worker/worker.service.ts:241

Terminates a specific Worker pool and rejects any in-flight tasks.

Parameters ​

ParameterTypeDescription
keystringThe pool key to terminate.

Returns ​

void

Example ​

ts
useTerminate("heavy");

Released under the MIT License.