Setu-TS
    Preparing search index...

    Interface IQueueProducer

    A Cloudflare Queues producer binding.

    The consumer half is IQueueMessageBatch, dispatched by the handler createQueueHandler builds for the Worker's queue export.

    0.2.0

    interface IQueueProducer {
        send(body: unknown, options?: QueueSendOptions): Promise<void>;
        sendBatch(
            messages: readonly { body: unknown; contentType?: string }[],
        ): Promise<void>;
    }
    Index
    • Enqueues up to 100 messages, at most 256 KB in total.

      Parameters

      • messages: readonly { body: unknown; contentType?: string }[]

        The message bodies, each optionally with its own options

      Returns Promise<void>