Kraken\Channel\ChannelComposite::pushRequest PHP Метод

pushRequest() публичный Метод

public pushRequest ( $name, $message, $flags = Channel::MODE_DEFAULT, callable $success = null, callable $failure = null, callable $cancel = null, $timeout )
$success callable
$failure callable
$cancel callable
    public function pushRequest($name, $message, $flags = Channel::MODE_DEFAULT, callable $success = null, callable $failure = null, callable $cancel = null, $timeout = 0.0)
    {
        $message = $this->createMessageProtocol($message);
        $names = (array) $name;
        $status = [];
        foreach ($names as $name) {
            $status[] = $this->handlePushRequest($name, $message, $flags, $success, $failure, $cancel, $timeout);
        }
        return !isset($status[0]) || isset($status[1]) ? $status : $status[0];
    }