src/EventDispatch/Dispatcher.php
public function queue($eventName, $payload = array())
    {
        $me = $this;

        $this->subscribe($eventName . self::QUEUE_NAME, function () use ($me, $eventName, $payload) {
            return $me->dispatch($eventName, $payload);
        });
    }
public function queue($eventName, $payload = array())
    {
        $me = $this;

        $this->subscribe($eventName . self::QUEUE_NAME, function () use ($me, $eventName, $payload) {
            return $me->dispatch($eventName, $payload);
        });
    }
public function queue ( $ eventName , $ payload = array ( ) ) { $ me = $ this ; $ this -> subscribe ( $ eventName . self :: QUEUE_NAME , function ( ) use ( $ me , $ eventName , $ payload ) { return $ me -> dispatch ( $ eventName , $ payload ) ; } ) ; }
Defer dispatching of an event or events until flush is called.

@param       $eventName
@param array $payload

@throws \EventDispatch\Exception\SubscriberNotCallable
Defer dispatching of an event or events until flush is called .