ParallelScheduler class

Limits the number of tasks running at the same time. This is somewhat similar to using a thread pool or process pool. But it just runs async functions.

Constructors

ParallelScheduler(int max)
max sets the maximum number of tasks that can be run simultaneously.

Properties

currentlyRunning int
no setter
hashCode int
The hash code for this object.
no setterinherited
max int
final
queueLength int
no setter
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
run<R>(GetterFunc<R> callback, [int priority = 0]) → Task<R>
toString() String
A string representation of this object.
inherited

Operators

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