MultiIsolateServer class final

A Server that runs in multiple Isolates.

Implemented types

Constructors

MultiIsolateServer(Uri url, Logger? logger)
Creates an instance of MultiIsolateServer.

Properties

hashCode int
The hash code for this object.
no setterinherited
isRunning bool
getter/setter pair
logger → Logger?
The logger of the instance.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supervisors List<IsolateSupervisor>
final
url Uri
The URL that the server is listening on.
final

Methods

close({bool force = false}) Future<void>
Closes the server and returns a future that completes when all resources are released.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reload() Future<void>
Reloads Applications in all spawned Isolates.
start(int isolates, Future<Server> spawn(SendPort?)) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

spawn(int isolates, Future<Server> spawn(SendPort?), {required Uri url, Logger? logger}) Future<MultiIsolateServer>