Tribble class

Each Tribble represents a single Isolate.

Constructors

Tribble(TribbleCallback worker, {Map parameters = const {}, OnChildExitedCallback? onChildExit})
Create a new tribble the worker callback function MUST call the connect() function argument it is passed as the first parameter

Properties

alive bool
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
latefinal
messages Stream
no setter
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
sendMessage(dynamic message) → void
Send a message to this Tribble that can be received by listening to the messages stream.
stop() → void
Kill this Tribble
toString() String
A string representation of this object.
override
waitForReady({int? timeOut}) Future<int>
Wait for the Tribble to be ready. Will time out after timeOut in seconds (defaults to 10) and throws an Exception if the Tribble is not ready within that time.

Operators

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

Static Properties

currentId String?
no setter
tribbleCount int
no setter

Static Methods

byId(String id) Tribble?
stopAll() → void