Prose\ExpectsZmq::canSendmultiNonBlocking PHP Метод

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

public canSendmultiNonBlocking ( $socket, $message )
    public function canSendmultiNonBlocking($socket, $message)
    {
        // what are we doing?
        $log = usingLog()->startAction("make sure ZMQ::sendmulti() does not block");
        // send the data
        $sent = $socket->sendmulti($message, ZMQ::MODE_NOBLOCK);
        // would it have blocked?
        if (!$sent) {
            throw new E5xx_ExpectFailed(__METHOD__, "sendmulti() would not block", "sendmulti() would have blocked");
        }
        // all done
        $log->endAction();
    }