toggle menu
kilua-project
0.0.17
common
js
wasmJs
switch theme
search in API
kilua-dom
/
web
/
Promise
Promise
common
js
wasmJs
expect
class
Promise
<
T
:
JsAny
?
>
(
executor
:
(
resolve
:
(
T
)
->
Unit
,
reject
:
(
JsAny
)
->
Unit
)
->
Unit
)
:
JsAny
actual
external
class
Promise
<
T
:
JsAny
?
>
(
executor
:
(
resolve
:
(
T
)
->
Unit
,
reject
:
(
JsAny
)
->
Unit
)
->
Unit
)
:
JsAny
actual
external
class
Promise
<
T
:
JsAny
?
>
:
JsAny
Members
Constructors
Promise
Link copied to clipboard
common
js
expect
constructor
(
executor
:
(
resolve
:
(
T
)
->
Unit
,
reject
:
(
JsAny
)
->
Unit
)
->
Unit
)
actual
constructor
(
executor
:
(
resolve
:
(
T
)
->
Unit
,
reject
:
(
JsAny
)
->
Unit
)
->
Unit
)
Types
Companion
Link copied to clipboard
common
js
wasmJs
expect
object
Companion
actual
object
Companion
actual
object
Companion
Functions
catch
Link copied to clipboard
common
js
expect
fun
<
S
:
JsAny
?
>
catch
(
onRejected
:
(
JsAny
)
->
S
)
:
Promise
<
S
>
actual
fun
<
S
:
JsAny
?
>
catch
(
onRejected
:
(
JsAny
)
->
S
)
:
Promise
<
S
>
finally
Link copied to clipboard
common
js
wasmJs
expect
fun
finally
(
onFinally
:
(
)
->
Unit
)
:
Promise
<
T
>
actual
fun
finally
(
onFinally
:
(
)
->
Unit
)
:
Promise
<
T
>
actual
fun
finally
(
onFinally
:
(
)
->
Unit
)
:
Promise
<
T
>
then
Link copied to clipboard
common
js
expect
fun
<
S
:
JsAny
?
>
then
(
onFulfilled
:
(
T
)
->
S
?
)
:
Promise
<
S
>
expect
fun
<
S
:
JsAny
?
>
then
(
onFulfilled
:
(
T
)
->
S
?
,
onRejected
:
(
JsAny
)
->
S
?
)
:
Promise
<
S
>
actual
fun
<
S
:
JsAny
?
>
then
(
onFulfilled
:
(
T
)
->
S
?
)
:
Promise
<
S
>
actual
fun
<
S
:
JsAny
?
>
then
(
onFulfilled
:
(
T
)
->
S
?
,
onRejected
:
(
JsAny
)
->
S
?
)
:
Promise
<
S
>