Skip to content

Interface: KyooJobProcessor()<M>

Describes the shape of a function which is used in the KyooWorker class to process jobs.

Type Parameters

Type ParameterDefault type
MKyooSerializable
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

ParameterTypeDescription
messageKyooJobMessage<M>The job message object.
dispositionersKyooWorkerDispositionersAn object containing the dispositioners for the job.
signalAbortSignalAn AbortSignal which is called when the job should be aborted.
controlsKyooWorkerControlsAn object containing the controls for the worker. Since 1.20240407.0

Returns

Promise<void>