when Watchdog Expires
open fun whenWatchdogExpires(@NonNull timeout: Measure<Time>, @NonNull action: DebugMode.TriggerAction): DebugMode
Create a new watchdog that can be updated via index through getWatchdogs. If this watchdog dies, the action will be executed.
Return
this
Parameters
timeout
the timeout before this watchdog dies
action
the action to take on timeout