Kotlin Wrappers API Reference
Toggle table of contents
common
Platform filter
common
Switch theme
kotlin-js
/
js.coroutines
Package-level
declarations
Functions
Functions
as
Promise
Link copied to clipboard
fun
<
T
:
JsAny
?
>
Deferred
<
T
>
.
asPromise
(
)
:
Promise
<
T
>
Converts this deferred value to the instance of
Promise
.
promise
Link copied to clipboard
fun
<
T
:
JsAny
?
>
CoroutineScope
.
promise
(
context
:
CoroutineContext
=
EmptyCoroutineContext
,
start
:
CoroutineStart
=
CoroutineStart.DEFAULT
,
block
:
suspend
CoroutineScope
.
(
)
->
T
)
:
Promise
<
T
>