method Queue.prototype.send
Queue.prototype.send<T>(
queue: string,
data: T,
options?: SendOptions,
): Task<string, QueueSendFailed>

Send a message to a queue.

Examples

Send with delay

const id = await queue.send("notifications", payload, { delayMs: 30_000 }).run();

Type Parameters

Parameters

queue: string
data: T
optional
options: SendOptions

Return Type

Usage

import { Queue } from ".";