WebWorkerThread class
Constructors
- WebWorkerThread({required dynamic onMessage(ThreadResponse)})
Properties
-
activeTaskIds
↔ List<
String> -
List of IDs of tasks currently being processed by the isolate.
getter/setter pairinherited
- activeTasks ↔ int
-
Number of active tasks currently being processed by the isolate.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
A unique id for this thread.
getter/setter pairinherited
- isReady ↔ bool
-
Indicates whether the thread is ready for communication.
getter/setter pairinherited
- onMessage → dynamic Function(ThreadResponse)
-
Callback function for handling messages received from the isolate.
finalinherited
- readyState ↔ Completer
-
A completer to track when the thread is ready for communication.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- worker ↔ Worker
-
latefinal
Methods
-
destroy(
) → void -
Destroys the thread and cleans up any resources.
override
-
destroyActiveTasks(
String ignoreTaskId) → void -
Destroys all active tasks in the thread, except the task with the given
ignoreTaskId
.override -
init(
) → void -
Initializes the thread.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
ThreadRequest data) → void -
Sends a ThreadRequest to the thread for processing.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited