dispatch method

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

Dispatches a job to the queue with optional delay. This is the main method - just dispatch any job without registration!

Implementation

Future<void> dispatch(QueueJob job, {Duration? delay}) async {
  await _defaultDriver!.push(job, delay: delay);
}