Core/src/GrpcTrait.php
public function send(callable $request, array $args, $whitelisted = false)
    {
        $requestOptions = $this->pluckArray([
            'grpcOptions',
            'retries',
            'requestTimeout'
        ], $args[count($args) - 1]);

        try {
            return $this->requestWrapper->send($request, $args, $requestOptions);
        } catch (NotFoundException $e) {
            if ($whitelisted) {
                throw $this->modifyWhitelistedError($e);
            }

            throw $e;
        }
    }
public function send(callable $request, array $args, $whitelisted = false)
    {
        $requestOptions = $this->pluckArray([
            'grpcOptions',
            'retries',
            'requestTimeout'
        ], $args[count($args) - 1]);

        try {
            return $this->requestWrapper->send($request, $args, $requestOptions);
        } catch (NotFoundException $e) {
            if ($whitelisted) {
                throw $this->modifyWhitelistedError($e);
            }

            throw $e;
        }
    }
public function send ( callable $ request , array $ args , $ whitelisted = false ) { $ requestOptions = $ this -> pluckArray ( [ 'grpcOptions' , 'retries' , 'requestTimeout' ] , $ args [ count ( $ args ) - 1 ] ) ; try { return $ this -> requestWrapper -> send ( $ request , $ args , $ requestOptions ) ; } catch ( NotFoundException $ e ) { if ( $ whitelisted ) { throw $ this -> modifyWhitelistedError ( $ e ) ; } throw $ e ; } }
Delivers a request.

@param callable $request
@param array $args
@param bool $whitelisted
@return \Generator|array
Delivers a request .