OpfsWorkerPool class final
Page-wide pool: one manifest writer worker plus N chunk workers.
OPFS sync access handles are exclusive per file, so chunk files can be handled in parallel as long as each chunk is owned by exactly one worker.
Properties
-
clients
→ List<
OpfsWorkerClient> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDead → bool
-
no setter
- manifest → OpfsWorkerClient
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- usesSabRing → bool
-
Whether the SAB ring negotiated successfully in every worker.
no setter
Methods
-
clientForChunk(
int index) → OpfsWorkerClient -
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
-
instance(
{int? workers}) → Future< OpfsWorkerPool>
Constants
- defaultWorkers → const int
- Number of chunk workers to create by default.