push abstract method

Future<void> push(
  1. QueueJob job, {
  2. Duration? delay,
})

Pushes a QueueJob to the queue with optional delay.

The delay allows deferring the job execution.

Example:

await queueDriver.push(SendEmailJob(), delay: Duration(seconds: 30));

Implementation

Future<void> push(QueueJob job, {Duration? delay});