ProcessSwitcher class
Base class for process handler with context switching logic.
Constructors
- ProcessSwitcher({Duration? idleTimeout})
Properties
- hasActiveProcess → bool
-
Returns true if there is an active process running.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- idleTimeout → Duration?
-
final
- 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
-
stop(
) → Future< void> - Stop all processes and cleanup resources
-
toString(
) → String -
A string representation of this object.
inherited
-
withContext<
C extends ProcessContext, K> (ProcessSpec< C> spec, ContextFn<C, K> fn, {int priority = 0, bool preemptable = false}) → Future<K> - Execute a function with the specified context loaded
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited