Solutions
Multiplatform
Server-side
Data science
Android
Docs
Community
Teach
Play
Playground
Examples
Koans
kotlinx.coroutines
Toggle table of contents
1.10.2
js
wasmJs
Platform filter
js
wasmJs
Switch theme
Search in API
kotlinx.coroutines
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
.