Parallel class

A set of helpers for parallel computing

Methods provided:

  • Parallel.run : Executes a function in a different thread.
  • Parallel.map : Works like a map but each value will be adapted in a different thread
  • Parallel.foreach : Works like a for in loop but each value will be executed in a different thread

Constructors

Parallel()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

foreach<T>(List<T> values, FutureOr<void> handler(T item)) FutureOr<void>
Executes a 'for in' loop function in a different thread.
map<T, R>(List<T> values, FutureOr<R> handler(T item)) FutureOr<List<R>>
Executes a map function in a different thread.
run<T, R>(ParallelCallback<T, R> handler, {T? entryValue}) FutureOr<R?>
Executes a function in a different thread.