WorkProxyIsolate class

Inheritance

Constructors

WorkProxyIsolate({required Isolate worker, required ReceivePort2 rcp, bool errorsAreFatal = true})

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.
no setteroverride
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
rcp ReceivePort2
final
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 Isolate
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.
inherited
toString() String
A string representation of this object.
inherited

Operators

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