try With Bulkhead
suspend fun <T> tryWithBulkhead(config: BulkheadConfig = BulkheadConfig(), block: suspend () -> T): T?(source)
Tries to execute an operation with bulkhead protection, returning null if rejected.
Return
the result of the operation or null if rejected
Parameters
config
bulkhead configuration
block
the operation to execute