Kotlin Wrappers API Reference
Toggle table of contents
common
Platform filter
common
Switch theme
kotlin-js
/
js.coroutines
/
promise
promise
fun
<
T
:
JsAny
?
>
CoroutineScope
.
promise
(
context
:
CoroutineContext
=
EmptyCoroutineContext
,
start
:
CoroutineStart
=
CoroutineStart.DEFAULT
,
block
:
suspend
CoroutineScope
.
(
)
->
T
)
:
Promise
<
T
>
(
source
)