ParallelFutures<T> extension
Methods
-
asParallel(
) → Future< Iterable< T> > -
Available on Iterable<
Run functions in isolates and wait the results If functions cannot be run in an Isolate, use waitAll instead.Future< , provided by the ParallelFutures extensionT> Function()> -
tryAsParallel(
{String? errorMessage, int? internalErrorCode}) → Future< Iterable< ValidatedResult< >T> > -
Available on Iterable<
Run functions in isolates and wait the results, collecting successes and failures If functions cannot be run in an Isolate, use tryWaitAll instead.Future< , provided by the ParallelFutures extensionT> Function()> -
tryWaitAll(
{String? errorMessage, int? internalErrorCode}) → Future< Iterable< ValidatedResult< >T> > -
Available on Iterable<
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 tryAsParallelFuture< , provided by the ParallelFutures extensionT> Function()> -
waitAll(
) → Future< Iterable< T> > -
Available on Iterable<
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 asParallelFuture< , provided by the ParallelFutures extensionT> Function()>