UseTerminate
katanakit-js / useTerminate
Function: useTerminate()
Section titled “Function: useTerminate()”function useTerminate(key): void;Defined in: infrastructure/worker/worker.service.ts:241
Terminates a specific Worker pool and rejects any in-flight tasks.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
key |
string |
The pool key to terminate. |
Returns
Section titled “Returns”void
Example
Section titled “Example”useTerminate("heavy");