Extensions for mapping AsyncResult and AsyncCompletion objects to and from Kotlin coroutines.
class CoroutineLatch
A co-routine synchronization aid that allows co-routines to wait until a set of operations being performed has completed. |
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?
Cancel and retry a suspending block until a non-null result is obtained. |