concurrent-coroutines
Module Contents
alltypes
Module Contents
class
CoroutineLatch
Module Contents
CoroutineLatch
(
initial
:
Int
)
suspend
fun
await
(
)
:
Unit
val
count
:
Int
fun
countDown
(
)
:
Boolean
fun
countUp
(
)
:
Boolean
val
isOpen
:
Boolean
kotlinx.coroutines.CoroutineScope
Module Contents
fun
CoroutineScope
.
asyncCompletion
(
context
:
CoroutineContext
=
Dispatchers.Default
,
start
:
CoroutineStart
=
CoroutineStart.DEFAULT
,
block
:
suspend
CoroutineScope
.
(
)
->
Unit
)
:
AsyncCompletion
fun
<
T
>
CoroutineScope
.
asyncResult
(
context
:
CoroutineContext
=
Dispatchers.Default
,
start
:
CoroutineStart
=
CoroutineStart.DEFAULT
,
block
:
suspend
CoroutineScope
.
(
)
->
T
)
:
AsyncResult
<
T
>
suspend
fun
<
R
>
CoroutineScope
.
retry
(
retryDelay
:
Long
,
block
:
suspend
(
Int
)
->
R
?
)
:
R
suspend
fun
<
R
>
CoroutineScope
.
retry
(
retryDelay
:
Long
,
maxRetries
:
Int
,
block
:
suspend
(
Int
)
->
R
?
)
:
R
?
suspend
fun
<
R
>
CoroutineScope
.
retry
(
retryDelay
:
(
Int
)
->
Long
?
,
block
:
suspend
(
Int
)
->
R
?
)
:
R
?
kotlinx.coroutines.Deferred
Module Contents
fun
Deferred
<
Unit
>
.
asAsyncCompletion
(
)
:
AsyncCompletion
fun
<
T
>
Deferred
<
T
>
.
asAsyncResult
(
)
:
AsyncResult
<
T
>
kotlinx.coroutines.Job
Module Contents
fun
Job
.
asAsyncCompletion
(
)
:
AsyncCompletion
org.apache.tuweni.concurrent.AsyncCompletion
Module Contents
fun
AsyncCompletion
.
asDeferred
(
)
:
Deferred
<
Unit
>
suspend
fun
AsyncCompletion
.
await
(
)
:
Unit
org.apache.tuweni.concurrent.AsyncResult
Module Contents
fun
<
T
>
AsyncResult
<
T
>
.
asDeferred
(
)
:
Deferred
<
T
>
suspend
fun
<
T
>
AsyncResult
<
T
>
.
await
(
)
:
T
package
org.apache.tuweni.concurrent.coroutines
Module Contents
class
CoroutineLatch
Module Contents
CoroutineLatch
(
initial
:
Int
)
suspend
fun
await
(
)
:
Unit
val
count
:
Int
fun
countDown
(
)
:
Boolean
fun
countUp
(
)
:
Boolean
val
isOpen
:
Boolean
kotlinx.coroutines.CoroutineScope
Module Contents
fun
CoroutineScope
.
asyncCompletion
(
context
:
CoroutineContext
=
Dispatchers.Default
,
start
:
CoroutineStart
=
CoroutineStart.DEFAULT
,
block
:
suspend
CoroutineScope
.
(
)
->
Unit
)
:
AsyncCompletion
fun
<
T
>
CoroutineScope
.
asyncResult
(
context
:
CoroutineContext
=
Dispatchers.Default
,
start
:
CoroutineStart
=
CoroutineStart.DEFAULT
,
block
:
suspend
CoroutineScope
.
(
)
->
T
)
:
AsyncResult
<
T
>
suspend
fun
<
R
>
CoroutineScope
.
retry
(
retryDelay
:
Long
,
block
:
suspend
(
Int
)
->
R
?
)
:
R
suspend
fun
<
R
>
CoroutineScope
.
retry
(
retryDelay
:
Long
,
maxRetries
:
Int
,
block
:
suspend
(
Int
)
->
R
?
)
:
R
?
suspend
fun
<
R
>
CoroutineScope
.
retry
(
retryDelay
:
(
Int
)
->
Long
?
,
block
:
suspend
(
Int
)
->
R
?
)
:
R
?
kotlinx.coroutines.Deferred
Module Contents
fun
Deferred
<
Unit
>
.
asAsyncCompletion
(
)
:
AsyncCompletion
fun
<
T
>
Deferred
<
T
>
.
asAsyncResult
(
)
:
AsyncResult
<
T
>
kotlinx.coroutines.Job
Module Contents
fun
Job
.
asAsyncCompletion
(
)
:
AsyncCompletion
org.apache.tuweni.concurrent.AsyncCompletion
Module Contents
fun
AsyncCompletion
.
asDeferred
(
)
:
Deferred
<
Unit
>
suspend
fun
AsyncCompletion
.
await
(
)
:
Unit
org.apache.tuweni.concurrent.AsyncResult
Module Contents
fun
<
T
>
AsyncResult
<
T
>
.
asDeferred
(
)
:
Deferred
<
T
>
suspend
fun
<
T
>
AsyncResult
<
T
>
.
await
(
)
:
T
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
?