IsolateBundleFactory class

Creates instances of IsolateBundles.

Constructors

IsolateBundleFactory()
Creates instances of IsolateBundles.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startNew<TConfig extends IsolateBundleConfiguration, TSend, TReceive>(void entryPoint(TConfig message), TConfig configBuilder(SendPort toCaller), {bool paused = false, bool errorsAreFatal = true, SendPort? onExit, SendPort? onError, String? name}) Future<IsolateBundle<TConfig, TSend, TReceive>>
Spawns a new isolate using the given parameters and initializes it for bidirectional communication.
startNewPingPong<TConfig extends IsolateBundleConfiguration, TSend, TReceive>(void entryPoint(TConfig message), TConfig configBuilder(SendPort toCaller), {bool paused = false, bool errorsAreFatal = true, SendPort? onExit, SendPort? onError, String? name}) Future<PingPongIsolateBundle<TConfig, TSend, TReceive>>
Starts a new isolate which can send a 'ping' message after which it waits for a 'pong' response.
toString() String
A string representation of this object.
inherited

Operators

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