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
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
ownto the porttargetof another isolate group. A port of another group is only known by its number, so the message is built by hand: aDart_CObjectof the typekSendPort. -
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 fromstartServer(), after the providers of the config are added.serveris the server that this isolate gave to its ownstartServer(server:).