IsolateRpcClient class

RPC client that sends requests to and receives responses from an isolate.

Constructors

IsolateRpcClient()

Properties

hashCode int
The hash code for this object.
no setterinherited
isolate Isolate?
getter/setter pair
receivePort ReceivePort
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendPort SendPort?
getter/setter pair

Methods

disposeGracefully({String? disposeOp, Duration timeout = const Duration(seconds: 5)}) Future<void>
Gracefully disposes: sends disposeOp as a request and awaits the isolate's ack (so it can free native resources) before force-killing via failAllAndDispose.
failAllAndDispose({String? disposeOp}) → void
Fails all pending requests, optionally sends a dispose op, and kills the isolate.
handleResponse(dynamic message, {Object errorWrapper(String)?}) → void
Dispatches an incoming isolate message to the matching pending completer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendRequest<T>(String operation, Map<String, dynamic> params) Future<T>
Sends an RPC request to the isolate and returns the typed response future.
toString() String
A string representation of this object.
inherited

Operators

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