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