IsolateWeb class

Inheritance

Constructors

IsolateWeb({required Worker worker, bool errorsAreFatal = true, String? debugName})

Properties

controlPort SendPort2
Control port used to send control messages to the isolate.
finalinherited
debugName String?
The name of the WorkIsolate displayed for debug purposes.
final
errorsAreFatal bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
messages Stream
Returns a broadcast stream of uncaught errors from the isolate.
no setteroverride
pauseCapability Capability2?
Capability granting the ability to pause the isolate.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
terminateCapability Capability2?
Capability granting the ability to terminate the isolate.
no setteroverride
worker Worker
final

Methods

addErrorListener(SendPort2 port) → void
Requests that uncaught errors of the isolate are sent back to port.
override
addOnExitListener(SendPort2 responsePort, {Object? response}) → void
Requests an exit message on responsePort when the isolate terminates.
override
kill({int priority = WorkIsolate.beforeNextEvent}) → void
Requests the isolate to shut down.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause([Capability2? resumeCapability]) Capability2
Requests the isolate to pause.
override
ping(SendPort2 responsePort, {Object? response, int priority = WorkIsolate.immediate}) → void
Requests that the isolate send response on the responsePort.
override
removeErrorListener(SendPort2 port) → void
Stops listening for uncaught errors from the isolate.
override
removeOnExitListener(SendPort2 responsePort) → void
Stops listening for exit messages from the isolate.
override
resume(Capability2 resumeCapability) → void
Resumes a paused isolate.
override
sendToIsolate(Object message) → void
inherited
setErrorsFatal(bool errorsAreFatal) → void
Sets whether uncaught errors will terminate the isolate.
override
toString() String
A string representation of this object.
inherited

Operators

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