ZenWorkerHandle class
Handle for controlling worker lifecycle
Constructors
- ZenWorkerHandle.new(void _disposer(), {void pauseFunction()?, void resumeFunction()?, bool isPausedGetter()?, bool isDisposedGetter()?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isActive → bool
-
Whether the worker is active (not disposed and not paused)
no setter
- isDisposed → bool
-
Whether the worker is disposed
no setter
- isPaused → bool
-
Whether the worker is paused
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Dispose the worker
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → void - Pause the worker (prevents execution but keeps listening)
-
resume(
) → void - Resume the worker
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited