GroupWorker class

What a server isolate does when it runs in its own isolate group. It is the isolateHandler of DoxIsolate, but the config, providers and routes are not sent: the group runs the main() of the app, so it builds them itself. Only the ports come from the primary isolate.

Constructors

GroupWorker()

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
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

handshakeTimeout ↔ Duration
the most time to wait for the ports of the primary isolate
getter/setter pair

Static Methods

postSendPort(int target, SendPort own) → void
Send own to the port target of another isolate group. A port of another group is only known by its number, so the message is built by hand: a Dart_CObject of the type kSendPort.
run(GroupIdentity identity, ServerAdapter? server) → Future<void>
Say hello to the primary, get its ports, then start the providers and the server like isolateHandler. Call it from startServer(), after the providers of the config are added. server is the server that this isolate gave to its own startServer(server:).