toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-js
/
js.promise
Package-level
declarations
Types
Functions
Types
Disposable
Promise
Link copied to clipboard
external
interface
DisposablePromise
<
out
T
>
:
Promise
<
T
>
,
Disposable
Promise
Link copied to clipboard
open
external
class
Promise
<
out
T
>
(
executor
:
(
resolve
:
PromiseResolve
<
T
>
)
->
Unit
)
:
PromiseLike
<
T
>
Promise
Fulfilled
Result
Link copied to clipboard
external
class
PromiseFulfilledResult
<
T
>
:
PromiseSettledResult
<
T
>
Promise
Like
Link copied to clipboard
external
interface
PromiseLike
<
out
T
>
:
PromiseResult
<
T
>
Promise
Reject
Link copied to clipboard
sealed
external
interface
PromiseReject
Promise
Rejected
Result
Link copied to clipboard
external
class
PromiseRejectedResult
:
PromiseSettledResult
<
Void
>
Promise
Resolve
Link copied to clipboard
sealed
external
interface
PromiseResolve
<
T
>
Promise
Result
Link copied to clipboard
sealed
external
interface
PromiseResult
<
out
T
>
Promise
Settled
Result
Link copied to clipboard
sealed
external
interface
PromiseSettledResult
<
T
>
Promise
With
Resolvers
Link copied to clipboard
sealed
external
interface
PromiseWithResolvers
<
T
>
Functions
as
Deferred
Link copied to clipboard
inline
fun
<
T
>
Promise
<
T
>
.
asDeferred
(
)
:
Deferred
<
T
>
catch
Link copied to clipboard
inline
fun
<
T
>
Promise
<
T
>
.
catch
(
noinline
onRejected
:
(
JsError
)
->
T
)
:
Promise
<
T
>
Disposable
Promise
Link copied to clipboard
fun
<
T
>
DisposablePromise
(
promise
:
Promise
<
T
>
,
dispose
:
(
)
->
Unit
)
:
DisposablePromise
<
T
>
flat
Catch
Link copied to clipboard
inline
fun
<
T
>
Promise
<
T
>
.
flatCatch
(
noinline
onRejected
:
(
JsError
)
->
PromiseResult
<
T
>
)
:
Promise
<
T
>
Promise
Result
Link copied to clipboard
inline
fun
<
T
>
PromiseResult
(
value
:
T
)
:
PromiseResult
<
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
>
fun
<
T
>
PromiseSettledResult
<
T
>
.
toResult
(
)
:
Result
<
T
>