public function handle($sender, ProtocolInterface $protocol, $flags, callable $success = null, callable $failure = null, callable $cancel = null, $timeout = 0.0)
    {
        $callback = $this->handler;
        $callback($sender, $protocol, $flags, $success, $failure, $cancel, $timeout);

        if ($this->limit > 0)
        {
            $this->limit--;
            if ($this->limit === 0)
            {
                $this->cancel();
            }
        }

        return $this->propagate;
    }
public function handle($sender, ProtocolInterface $protocol, $flags, callable $success = null, callable $failure = null, callable $cancel = null, $timeout = 0.0)
    {
        $callback = $this->handler;
        $callback($sender, $protocol, $flags, $success, $failure, $cancel, $timeout);

        if ($this->limit > 0)
        {
            $this->limit--;
            if ($this->limit === 0)
            {
                $this->cancel();
            }
        }

        return $this->propagate;
    }
public function handle ( $ sender , ProtocolInterface $ protocol , $ flags , callable $ success = null , callable $ failure = null , callable $ cancel = null , $ timeout = 0.0 ) { $ callback = $ this -> handler ; $ callback ( $ sender , $ protocol , $ flags , $ success , $ failure , $ cancel , $ timeout ) ; if ( $ this -> limit > 0 ) { $ this -> limit -- ; if ( $ this -> limit === 0 ) { $ this -> cancel ( ) ; } } return $ this -> propagate ; }
Handle given message protocol.

@param string $sender
@param ProtocolInterface $protocol
@param int $flags
@param callable|null $success
@param callable|null $failure
@param callable|null $cancel
@param float $timeout
@return bool
Handle given message protocol .