IsolateContactorController<R, P> class
abstract
Constructors
- IsolateContactorController(dynamic params, {dynamic onDispose()?})
-
Create controller for current
IsolateContactor
factory
Properties
- controller → dynamic
-
Get current controller. This method only needs for internal use only
no setter
-
ensureInitialized
→ Completer<
void> -
Ensure the
Isolate
/Worker
has been initializedno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- initialParams → dynamic
-
Get initial params for
createOwnIsolate
no setter -
onIsolateMessage
→ Stream<
P> -
Listen to the message is sent to isolate
no setter
-
onMessage
→ Stream<
R> -
Listen to result from the isolate
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - Close this controller
-
initialized(
) → void - Mark as initialized.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendIsolate(
P message) → void -
Send
message
to the isolate for computation -
sendIsolateState(
IsolateState state) → void -
Send an
IsolateState
message to the isolate -
sendResult(
R result) → void -
Send the
result
of computation toonIsolateMessage
stream -
sendResultError(
IsolateException exception) → void -
Send the
Exception
to the main app -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited