onStateTransition

suspend fun onStateTransition(action: suspend (CircuitBreakerEvent.StateTransition) -> Unit): Job(source)

Executes the given action when the circuit breaker transitions to a new state.

See also