JobPool class

Runs blob materialize / upload jobs with bounded concurrency.

Constructors

JobPool(int concurrency)
Builds a pool clamped to 1..16 workers.

Properties

concurrency → int
Workers that may run at once.
no setter
hashCode → int
The hash code for this object.
no setterinherited
inFlight → int
Jobs queued or in flight.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

drain() → Future<void>
Waits until every scheduled job finished.
enqueue(FutureOr<void> job()) → void
Schedules a job.
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