coroutineworker
Module Contents
alltypes
Module Contents
expect
class
CoroutineWorker
Module Contents
CoroutineWorker
(
)
fun
cancel
(
)
:
Unit
suspend
fun
cancelAndJoin
(
)
:
Unit
val
coroutineContext
:
<ERROR CLASS>
fun
execute
(
block
:
suspend
<ERROR CLASS>
.
(
)
->
Unit
)
:
CoroutineWorker
suspend
fun
<
T
>
performAndWait
(
block
:
suspend
<ERROR CLASS>
.
(
)
->
T
)
:
T
package
com.autodesk.coroutineworker
Module Contents
expect
class
CoroutineWorker
Module Contents
CoroutineWorker
(
)
fun
cancel
(
)
:
Unit
suspend
fun
cancelAndJoin
(
)
:
Unit
val
coroutineContext
:
<ERROR CLASS>
fun
execute
(
block
:
suspend
<ERROR CLASS>
.
(
)
->
Unit
)
:
CoroutineWorker
suspend
fun
<
T
>
performAndWait
(
block
:
suspend
<ERROR CLASS>
.
(
)
->
T
)
:
T
expect
suspend
fun
<
T
>
threadSafeSuspendCallback
(
startAsync
:
(
CompletionLambda
<
T
>
)
->
CancellationLambda
)
:
T
actual
suspend
fun
<
T
>
threadSafeSuspendCallback
(
startAsync
:
(
<ERROR CLASS>
<
T
>
)
->
<ERROR CLASS>
)
:
T
suspend
fun
<
T
>
threadSafeSuspendCallbackWithValue
(
startAsync
:
(
(
T
)
->
Unit
)
->
CancellationLambda
)
:
T