tuweni / org.apache.tuweni.concurrent.coroutines

Package org.apache.tuweni.concurrent.coroutines

Extensions for External Classes

kotlinx.coroutines.CoroutineScope

kotlinx.coroutines.Deferred

kotlinx.coroutines.Job

org.apache.tuweni.concurrent.AsyncCompletion

org.apache.tuweni.concurrent.AsyncResult

Functions

timeoutAndRetry

Cancel and retry a suspending block until a non-null result is obtained.

suspend fun <R> timeoutAndRetry(timeout: Long, block: suspend (Int) -> R?): R
suspend fun <R> timeoutAndRetry(timeout: Long, maxRetries: Int, block: suspend (Int) -> R?): R?
suspend fun <R> timeoutAndRetry(timeout: (Int) -> Long?, block: suspend (Int) -> R?): R?