Overview
Processor is the async function type that receives jobs and processes them. It’s the core of a Worker’s job processing logic.Type Definition
Parameters
job
Job<T, R, N>
required
The job to be processed
token
string
Worker token for the job (used internally for locking)
signal
AbortSignal
Abort signal for job cancellation
Return Value
R
The result value that will be stored as the job’s return value
