Search
Preparing search index...
The search index is not available
EF Promise
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"cancellable/resolvable/Promise"
CancellableResolvablePromise
Class CancellableResolvablePromise<T, E>
Type parameters
T
E
Hierarchy
CancellablePromise
<
T
,
E
>
CancellableResolvablePromise
Implements
IMutable
<
T
,
E
>
IMutable
<
T
,
E
>
Index
Constructors
constructor
Properties
__@to
String
Tag
cancel
cancelled
resolve
Accessors
is
Cancelled
Methods
callbacks
catch
finally
then
reject
resolve
Constructors
constructor
new
Cancellable
Resolvable
Promise
(
executor
?:
CancellableExecutor
<
T
,
E
>
)
:
CancellableResolvablePromise
Parameters
Default value
executor:
CancellableExecutor
<
T
,
E
>
= nothing
Returns
CancellableResolvablePromise
Properties
__@to
String
Tag
__@to
String
Tag
:
"Promise"
= "Promise"
cancel
cancel
:
function
Type declaration
(
reason
?:
undefined
|
string
)
:
void
Parameters
Optional
reason:
undefined
|
string
Returns
void
cancelled
cancelled
:
boolean
resolve
resolve
:
Resolve
<
T
>
Accessors
is
Cancelled
get
isCancelled
(
)
:
boolean
Returns
boolean
Methods
Protected
Optional
callbacks
callbacks
(
resolve
:
Resolve
<
T
>
)
:
void
Parameters
resolve:
Resolve
<
T
>
Returns
void
catch
catch<R>
(
reject
?:
OnRejected
<
R
,
E
>
)
:
ICancellablePromise
<
T
|
R
,
E
>
Type parameters
R
Parameters
Optional
reject:
OnRejected
<
R
,
E
>
Returns
ICancellablePromise
<
T
|
R
,
E
>
finally
finally
(
callback
?:
OnFinally
)
:
ICancellablePromise
<
T
,
E
>
Parameters
Optional
callback:
OnFinally
Returns
ICancellablePromise
<
T
,
E
>
then
then<F, R>
(
fulfill
:
OnFulfilled
<
T
,
F
>
, reject
?:
OnRejected
<
R
,
E
>
)
:
ICancellablePromise
<
F
|
R
,
E
>
Type parameters
F
R
Parameters
fulfill:
OnFulfilled
<
T
,
F
>
Optional
reject:
OnRejected
<
R
,
E
>
Returns
ICancellablePromise
<
F
|
R
,
E
>
Static
reject
reject<ST, SE>
(
error
:
SE
)
:
ICancellablePromise
<
ST
,
SE
>
Type parameters
ST
SE
Parameters
error:
SE
Returns
ICancellablePromise
<
ST
,
SE
>
Static
resolve
resolve<ST, SE>
(
value
?:
ST
)
:
ICancellablePromise
<
ST
,
SE
>
Type parameters
ST
SE
Parameters
Optional
value:
ST
Returns
ICancellablePromise
<
ST
,
SE
>
Globals
"
Cancelled"
"
Error"
"
Executor"
"
Finally"
"
Fulfilled"
"IPromise"
"
OnCancel"
"
OnFinally"
"
OnFulfilled"
"
OnRejected"
"
Reject"
"
Rejected"
"
Resolve"
"cancellable/
Executor"
"cancellable/IPromise"
"cancellable/
Promise"
"cancellable/rejectable/IPromise"
"cancellable/rejectable/
Promise"
"cancellable/resolvable/IPromise"
"cancellable/resolvable/
Promise"
"cancellable/resolvable/rejectable/IPromise"
"cancellable/resolvable/rejectable/
Promise"
"error/
Cancelled"
"index"
"nothing"
Cancellable
Resolvable
Promise
constructor
__@to
String
Tag
cancel
cancelled
resolve
is
Cancelled
callbacks
catch
finally
then
reject
resolve