sendRequestObject<T> method

Future<T> sendRequestObject<T>(
  1. RpcRequest request
)

send request object and wait for its response of type T

also throws RpcError if response has error

! Note: this method is not affect by batch mode

Implementation

Future<T> sendRequestObject<T>(RpcRequest request) {
  sendRpcObject(request);
  return request.waitForResponse<T>();
}