Interface: KyooJobProcessor()<M>
Describes the shape of a function which is used in the KyooWorker class to process jobs.
Type Parameters
| Type Parameter | Default type |
|---|---|
M | KyooSerializable |
ts
KyooJobProcessor(
message: KyooJobMessage<M>,
dispositioners: KyooWorkerDispositioners,
signal: AbortSignal,
controls: KyooWorkerControls): Promise<void>;Describes the shape of a function which is used in the KyooWorker class to process jobs.
Parameters
| Parameter | Type | Description |
|---|---|---|
message | KyooJobMessage<M> | The job message object. |
dispositioners | KyooWorkerDispositioners | An object containing the dispositioners for the job. |
signal | AbortSignal | An AbortSignal which is called when the job should be aborted. |
controls | KyooWorkerControls | An object containing the controls for the worker. Since 1.20240407.0 |
Returns
Promise<void>
