protected function getEventQueueDeferred($mask)
    {
        if (!isset($this->queues[$mask])) {
            $this->queues[$mask] = new Deferred;
        }
        return $this->queues[$mask];
    }
protected function getEventQueueDeferred($mask)
    {
        if (!isset($this->queues[$mask])) {
            $this->queues[$mask] = new Deferred;
        }
        return $this->queues[$mask];
    }
protected function getEventQueueDeferred ( $ mask ) { if ( ! isset ( $ this -> queues [ $ mask ] ) ) { $ this -> queues [ $ mask ] = new Deferred ; } return $ this -> queues [ $ mask ] ; }
Creates a deferred for the event queue of a given connection.

@param string $mask Mask for the connection
@return \React\Promise\Deferred
Creates a deferred for the event queue of a given connection .