toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-js
/
js.promise
/
PromiseLike
Promise
Like
external
interface
PromiseLike
<
out
T
>
:
PromiseResult
<
T
>
(
source
)
Inheritors
Promise
Members
Members & Extensions
Functions
await
Link copied to clipboard
open
inline suspend override
fun
await
(
)
:
T
flat
Then
Link copied to clipboard
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
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
open
inline
fun
thenTo
(
continuation
:
Continuation
<
T
>
)
to
Promise
Link copied to clipboard
inline
fun
<
T
>
PromiseResult
<
T
>
.
toPromise
(
)
:
Promise
<
T
>
to
Result
Link copied to clipboard
suspend
fun
<
T
>
PromiseLike
<
T
>
.
toResult
(
)
:
Result
<
T
>