Predis\PubSub\DispatcherLoop::detachCallback PHP Méthode

detachCallback() public méthode

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