Try Install Learn Blog API Packages GitHub
Pages
core

Search
Entities

Promise

Functions

create
:
Tuple(Function(value, Void), Promise(value))

Create a promise with manual resolve.

{resolve, promise} = Promise.create()
never
:
Promise(Void)

Returns a resolved promise with Void which never fails.

never1
(
param1
:
a
)
:
Promise(Void)

Returns a resolved promise with Void which never fails with one argument which is ignored.

Promise.never1("Value")
never2
(
param1
:
a
param2
:
b
)
:
Promise(Void)

Returns a resolved promise with Void which never fails with two arguments which are ignored.

Promise.never1("Value1", "Value2")
never3
(
param1
:
a
param2
:
b
param3
:
c
)
:
Promise(Void)

Returns a resolved promise with Void which never fails with three arguments which are ignored.

Promise.never1("Value1", "Value2", "Value3")
resolve
(
input
:
a
)
:
Promise(a)

Creates an already resolved Promise