IRpcClient.sendRequestAndWait

Send a request and wait a response for the specified timeout.

interface IRpcClient(TId, TRequest, TResponse)
@safe
TResponse
sendRequestAndWait
(
TRequest request
,
Duration timeout = Duration.max()
)
if (
is(TRequest : IRpcRequest!TId) &&
is(TResponse : IRpcResponse)
)

Parameters

request TRequest

The request to send.

timeout Duration

How mush to wait for a response.

Throws

Any of RPCException sub-classes.

Meta