ParallelFutures<T> extension

on

Methods

asParallel() Future<Iterable<T>>

Available on Iterable<Future<T> Function()>, provided by the ParallelFutures extension

Run functions in isolates and wait the results If functions cannot be run in an Isolate, use waitAll instead.
tryAsParallel({String? errorMessage, int? internalErrorCode}) Future<Iterable<ValidatedResult<T>>>

Available on Iterable<Future<T> Function()>, provided by the ParallelFutures extension

Run functions in isolates and wait the results, collecting successes and failures If functions cannot be run in an Isolate, use tryWaitAll instead.
tryWaitAll({String? errorMessage, int? internalErrorCode}) Future<Iterable<ValidatedResult<T>>>

Available on Iterable<Future<T> Function()>, provided by the ParallelFutures extension

Run functions and wait the results, collecting successes ir failures Use this function if functions to be waited cannot be run (or you don't want them to run) in an isolate Otherwise use tryAsParallel
waitAll() Future<Iterable<T>>

Available on Iterable<Future<T> Function()>, provided by the ParallelFutures extension

Run functions and wait the results Use this function if functions to be waited cannot be run (or you don't want them to run) in an isolate Otherwise use asParallel