src/PubSub/DispatcherLoop.php
public function detachCallback($channel)
    {
        $callbackName = $this->getPrefixKeys().$channel;

        if (isset($this->callbacks[$callbackName])) {
            unset($this->callbacks[$callbackName]);
            $this->pubsub->unsubscribe($channel);
        }
    }
public function detachCallback($channel)
    {
        $callbackName = $this->getPrefixKeys().$channel;

        if (isset($this->callbacks[$callbackName])) {
            unset($this->callbacks[$callbackName]);
            $this->pubsub->unsubscribe($channel);
        }
    }
public function detachCallback ( $ channel ) { $ callbackName = $ this -> getPrefixKeys ( ) . $ channel ; if ( isset ( $ this -> callbacks [ $ callbackName ] ) ) { unset ( $ this -> callbacks [ $ callbackName ] ) ; $ this -> pubsub -> unsubscribe ( $ channel ) ; } }
Stops listening to a channel and removes the associated callback.

@param string $channel Redis channel.
Stops listening to a channel and removes the associated callback .