when

open fun when(stopCondition: BooleanSupplier, action: DebugMode.TriggerAction): DebugMode

Add a custom actionable condition.

Return

this

Parameters

stopCondition

the condition to periodically check

action

the action to take if the condition is met