wire

suspend fun wire()(source)

Checks the current state of the circuit breaker and decides whether the operation is allowed to proceed. If the circuit breaker is in the Open state or in the HalfOpen state and the number of calls attempted does exceed the permitted number of calls in the half-open state, a CallNotPermittedException is thrown; otherwise, the operation is allowed to proceed.