toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-js
/
js.promise
/
PromiseLike
Promise
Like
js
external
interface
PromiseLike
<
out
T
>
:
PromiseResult
<
T
>
(
source
)
Inheritors
Promise
Members
Members & Extensions
Functions
await
Link copied to clipboard
js
open
inline suspend override
fun
await
(
)
:
T
flat
Then
Link copied to clipboard
js
abstract
fun
<
R
>
flatThen
(
onFulfilled
:
(
T
)
->
PromiseResult
<
R
>
)
:
PromiseLike
<
R
>
abstract
fun
<
R
>
flatThen
(
onFulfilled
:
(
T
)
->
PromiseResult
<
R
>
,
onRejected
:
(
JsError
)
->
PromiseResult
<
R
>
)
:
PromiseLike
<
R
>
then
Link copied to clipboard
js
abstract
fun
<
R
>
then
(
onFulfilled
:
(
T
)
->
R
)
:
PromiseLike
<
R
>
abstract
fun
<
R
>
then
(
onFulfilled
:
(
T
)
->
R
,
onRejected
:
(
JsError
)
->
R
)
:
PromiseLike
<
R
>
then
To
Link copied to clipboard
js
open
inline
fun
thenTo
(
continuation
:
Continuation
<
T
>
)
to
Promise
Link copied to clipboard
js
inline
fun
<
T
>
PromiseResult
<
T
>
.
toPromise
(
)
:
Promise
<
T
>
to
Result
Link copied to clipboard
js
suspend
fun
<
T
>
PromiseLike
<
T
>
.
toResult
(
)
:
Result
<
T
>