src/Queue/Subscribe/PredisSubscribeEventQueue.php
public function unsubscribe(callable $handler)
    {
        $index = array_search($handler, $this->handlers);

        if ($index === false) {
            return false;
        }

        unset($this->handlers[$index]);

        return true;
    }
public function unsubscribe(callable $handler)
    {
        $index = array_search($handler, $this->handlers);

        if ($index === false) {
            return false;
        }

        unset($this->handlers[$index]);

        return true;
    }
public function unsubscribe ( callable $ handler ) { $ index = array_search ( $ handler , $ this -> handlers ) ; if ( $ index === false ) { return false ; } unset ( $ this -> handlers [ $ index ] ) ; return true ; }
Unsubscribe on event queue.

@param callable $handler

@return bool
Unsubscribe on event queue .