AqueductPool<T extends Aqueduct> class

A pool consisting of a total of count individual Aqueduct isolates which are constructed using supplier.

Constructors

AqueductPool(int count, T supplier())

Properties

count int
Specifies the amount of pooled isolates.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supplier → T Function()
Specifies the supplier function used to create the T isolate instances.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() Future
Fills the pool with the specified amount fo isolates and launches them.
stop() → void
Terminates all aqueduct instances of this pool.
task<R>(FutureOr<R> func(T)) Future<R>
Submits a task with the return value R and the function func. Returns the return value of the task after it has been completed.
toString() String
A string representation of this object.
inherited

Operators

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