getOrCreate

suspend fun getOrCreate(name: String, configure: CircuitBreakerConfigBuilder.() -> Unit? = null): CircuitBreaker(source)

Gets or creates a circuit breaker with the given name.

Return

the existing or newly created circuit breaker

Parameters

name

unique identifier for the circuit breaker

configure

optional configuration block