Immediate Queue

The Centum\Queue\ImmediateQueue class immediately executes any Tasks that are published to it. This technically is not a Queue as Tasks are actually executed within the publish() method.

    Centum\Interfaces\Queue\TaskRunnerInterface $taskRunner

As this is designed for testing and development, it also providers the getter getBuriedTasks() so that you can inspect the contents of the queue.

As no Tasks are stored in the Queue, calling the consume() method will throw NoTasksInQueueException.