toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.io.async
/
toPromise
to
Promise
fun
<
T
>
Deferred
<
T
>
.
toPromise
(
coroutineContext
:
CoroutineContext
)
:
Promise
<
T
>
suspend
fun
<
T
>
Deferred
<
T
>
.
toPromise
(
)
:
Promise
<
T
>
fun
Job
.
toPromise
(
coroutineContext
:
CoroutineContext
)
:
Promise
<
Unit
>
suspend
fun
Job
.
toPromise
(
)
:
Promise
<
Unit
>
Deprecated
Use CompletableDeferred instead