Solutions
Multiplatform
Server-side
Data science
Android
Docs
Community
Teach
Play
Playground
Examples
Koans
toggle menu
kotlinx.coroutines
1.9.0-RC
js
wasmJs
switch theme
search in API
kotlinx-coroutines-core
/
kotlinx.coroutines
/
asDeferred
as
Deferred
js
wasmJs
fun
<
T
>
Promise
<
T
>
.
asDeferred
(
)
:
Deferred
<
T
>
(
source
)
Converts this promise value to the instance of
Deferred
.
fun
<
T
>
Promise
<
JsAny
?
>
.
asDeferred
(
)
:
Deferred
<
T
>
(
source
)
Converts this promise value to the instance of
Deferred
.