withBulkhead

suspend fun <T> withBulkhead(config: BulkheadConfig = BulkheadConfig(), block: suspend () -> T): T(source)

Executes an operation with bulkhead protection.

Return

the result of the operation

Parameters

config

bulkhead configuration

block

the operation to execute