type alias QueueHandler
Since 0.2.0

The queue export's shape, as Cloudflare invokes it.

The platform passes env and an execution context after the batch; neither is needed here, because the queue's processors were registered against the application and the invocation ends when the returned promise settles.

Definition

(batch: IQueueMessageBatch) => Promise<void>

Usage

import { type QueueHandler } from "cloudflare-plugin/src/index.ts";