A task's native side, made, used and closed on its worker isolate only.
I is a request, R its result and U a streamed update.
Constructors
- WorkerTask()
-
For subclasses, which the
createfunction given to TaskWorker.start makes on the worker isolate.
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
-
close(
) → void - Releases the native task, once, after every request.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
I input) → R - Runs one request to its result.
-
stream(
I input, void emit(U update)) → Future< void> -
Runs one request whose results arrive through
emit, and returns after the last of them. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited