FutureRpcResponse<T> extension

Future Extension

Future extensions for JsonRpcResponses.

on

Methods

optional() Future<T?>

Available on Future<JsonRpcResponse<T>>, provided by the FutureRpcResponse extension

Waits for this future to complete and returns its JsonRpcResponse.result.
unwrap() Future<T>

Available on Future<JsonRpcResponse<T>>, provided by the FutureRpcResponse extension

Waits for this future to complete and returns its JsonRpcResponse.result.