KIsolate<TArg, TProgress, TResult> class

Runs a single async task in a dedicated isolate with progress reporting.

Prefer the built-in Isolate.run when you do not need progress callbacks. This class adds the overhead of a ReceivePort loop solely for that feature.

See KIsolateAccess for convenient mixin-based access.

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

run<TArg, TProgress, TResult>(Future<TResult> task(TArg arg, void emit(TProgress)), TArg arg, {void onProgress(TProgress)?}) Future<TResult>
Spawns an isolate, runs task, and returns its result.