PooledInstance class final

One instance per worker, so that calls can run on several threads at once.

Properties

hashCode → int
The hash code for this object.
no setterinherited
module → PooledModule
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
workerCount → int
The number of instances, one per worker.
no setter

Methods

callAll(String name, List<List<Object?>> argumentSets) → Future<List<Object?>>
Calls the export name once for every entry of argumentSets, spread over the workers so that they really run in parallel.
invoke(String name, [List<Object?> arguments = const []]) → Future<Object?>
Calls the export name on one of the workers.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readMemory(String name, int offset, int length) → Future<Uint8List>
Reads length bytes of the memory exported as name from one worker.
toString() → String
A string representation of this object.
override

Operators

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