PooledModule class final
A module that has been compiled on every worker of a WasmPool.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
imports
→ Future<
List< WasmImportInfo> > -
The imports the module declares (from the first worker).
no setter
- pool → WasmPool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
instantiate(
[Map< String, Map< imports = const {}]) → Future<String, Object?> >PooledInstance> - Instantiates the module on every worker.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → Future< Uint8List> - The compiled artifact, which other pools can load with WasmWorker.deserialize.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited