PingPongIsolateBundle<TConfig extends IsolateBundleConfiguration, TSend, TReceive> class
Wraps an IsolateBundle to make it 'request-response'.
With the pingPong method it is possible to send a message (ping) and waits for a response message (pong).
Constructors
-
PingPongIsolateBundle(IsolateBundle<
TConfig, PingPongMessage< _isolateBundle)TSend> , PingPongMessage<TReceive> > - Wraps an IsolateBundle to make it 'request-response'.
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
-
cancel(
[CancelMessage cancelMessage = const CancelMessage()]) → Future< void> - Cancels the isolate bundle.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pingPong(
TSend ping) → Future< TReceive> -
Sends
ping
to the isolate and waits for a response (pong) which is returned in the Future. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited