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< argumentSets) → Future<Object?> >List< Object?> > -
Calls the export
nameonce for every entry ofargumentSets, spread over the workers so that they really run in parallel. -
invoke(
String name, [List< Object?> arguments = const []]) → Future<Object?> -
Calls the export
nameon 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
lengthbytes of the memory exported asnamefrom one worker. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited