HighPriorityAction
Marker interface for high-priority actions.
Actions implementing this interface bypass the normal queue and are processed immediately. Use this for time-sensitive operations like cancellations or emergency stops.
Example:
sealed class UrgentAction : ModuleAction(UrgentModule::class), HighPriorityAction {
data object CancelOperation : UrgentAction()
data object EmergencyStop : UrgentAction()
}Content copied to clipboard