method RabbitMqQueue.prototype.enqueue
Since 0.1.0
RabbitMqQueue.prototype.enqueue<T>(job: StoredJob<T>): Promise<void>

Enqueues a job.

Type Parameters

Parameters

job: StoredJob<T>

The job to enqueue

Return Type

Promise<void>

Resolves when enqueued

Throws

Error

If the adapter is not connected

Usage

import { RabbitMqQueue } from "queue-plugin/src/index.ts";