performTask<T> method
- Future<
T> task(- EvmRpcClient client
- Duration timeout = const Duration(seconds: 30),
- int? maxTries,
Implementation
Future<T> performTask<T>(
Future<T> Function(EvmRpcClient client) task, {
Duration timeout = const Duration(seconds: 30),
int? maxTries,
}) =>
_manager.performTask(task, timeout: timeout, maxTries: maxTries).then(
(valueOrError) {
return valueOrError.when(
value: (value) => value.value,
error: (error) => throw Exception(error),
);
},
);