performTaskForClients<T, R> method

Future<R> performTaskForClients<T, R>(
  1. Future<T> task(
    1. EvmRpcClient
    ), {
  2. required R consilidate(
    1. List<ValueOrError<T, EvmRpcClient>> results
    ),
  3. Duration timeout = const Duration(seconds: 30),
  4. int maxTriesPerClient = 2,
  5. int minClients = 2,
  6. int? maxClients,
  7. bool enforceParallel = false,
})

Implementation

Future<R> performTaskForClients<T, R>(
  Future<T> Function(EvmRpcClient) task, {
  required R Function(
    List<ValueOrError<T, EvmRpcClient>> results,
  ) consilidate,
  Duration timeout = const Duration(seconds: 30),
  int maxTriesPerClient = 2,
  int minClients = 2,
  int? maxClients,
  bool enforceParallel = false,
}) =>
    _manager.performTaskForClients(
      task,
      consilidate: consilidate,
      timeout: timeout,
      maxTriesPerClient: maxTriesPerClient,
      maxClients: maxClients,
      minClients: minClients,
      enforceParallel: enforceParallel,
    );