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/rejectable/Promise"
CancellableRejectablePromise
Class CancellableRejectablePromise<T, E>
Type parameters
T
E
Hierarchy
CancellablePromise
<
T
,
E
>
CancellableRejectablePromise
Implements
IMutable
<
T
,
E
>
IMutable
<
T
,
E
>
Index
Constructors
constructor
Properties
__@to
String
Tag
cancel
cancelled
reject
Accessors
is
Cancelled
Methods
callbacks
catch
finally
then
reject
resolve
Constructors
constructor
new
Cancellable
Rejectable
Promise
(
executor
?:
CancellableExecutor
<
T
,
E
>
)
:
CancellableRejectablePromise
Parameters
Default value
executor:
CancellableExecutor
<
T
,
E
>
= nothing
Returns
CancellableRejectablePromise
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
reject
reject
:
Reject
<
E
>
Accessors
is
Cancelled
get
isCancelled
(
)
:
boolean
Returns
boolean
Methods
Protected
Optional
callbacks
callbacks
(
_
:
Resolve
<
T
>
, reject
:
Reject
<
E
>
)
:
void
Parameters
_:
Resolve
<
T
>
reject:
Reject
<
E
>
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
Rejectable
Promise
constructor
__@to
String
Tag
cancel
cancelled
reject
is
Cancelled
callbacks
catch
finally
then
reject
resolve