AnyJobQueueWorker interface

The consuming half of a queue: something that can be given a handler to run against each job.

T is the implementing type, returned for chaining; U is the job body type.

Signature:

export interface AnyJobQueueWorker<T, U> 

Methods

Method

Description

onPop(handler)

Registers the handler for jobs popped from this queue, replacing any handler already set, and returns this queue.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.