Search
Preparing search index...
The search index is not available
Packadic API Documentation
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
packadic
util
promise
Promise
Class Promise<T>
Type parameters
T
Hierarchy
Promise
Implements
PromiseInterface
<
T
>
Index
Constructors
constructor
Properties
_deferred
Methods
always
otherwise
then
Constructors
constructor
new
Promise
(
_deferred
:
Deferred
<
T
>
)
:
Promise
Parameters
_deferred:
Deferred
<
T
>
Returns
Promise
Properties
Private
_deferred
_deferred
:
Deferred
<
T
>
Methods
always
always<TP>
(
errorCB
?:
ImmediateErrorCB
<
TP
>
)
:
PromiseInterface
<
TP
>
always<TP>
(
errorCB
?:
DeferredErrorCB
<
TP
>
)
:
PromiseInterface
<
TP
>
Type parameters
TP
Parameters
Optional
errorCB:
ImmediateErrorCB
<
TP
>
Returns
PromiseInterface
<
TP
>
Type parameters
TP
Parameters
Optional
errorCB:
DeferredErrorCB
<
TP
>
Returns
PromiseInterface
<
TP
>
otherwise
otherwise
(
errorCB
?:
ImmediateErrorCB
<
T
>
)
:
PromiseInterface
<
T
>
otherwise
(
errorCB
?:
DeferredErrorCB
<
T
>
)
:
PromiseInterface
<
T
>
Parameters
Optional
errorCB:
ImmediateErrorCB
<
T
>
Returns
PromiseInterface
<
T
>
Parameters
Optional
errorCB:
DeferredErrorCB
<
T
>
Returns
PromiseInterface
<
T
>
then
then<TP>
(
successCB
?:
DeferredSuccessCB
<
T
,
TP
>
, errorCB
?:
DeferredErrorCB
<
TP
>
)
:
PromiseInterface
<
TP
>
then<TP>
(
successCB
?:
DeferredSuccessCB
<
T
,
TP
>
, errorCB
?:
ImmediateErrorCB
<
TP
>
)
:
PromiseInterface
<
TP
>
then<TP>
(
successCB
?:
ImmediateSuccessCB
<
T
,
TP
>
, errorCB
?:
DeferredErrorCB
<
TP
>
)
:
PromiseInterface
<
TP
>
then<TP>
(
successCB
?:
ImmediateSuccessCB
<
T
,
TP
>
, errorCB
?:
ImmediateErrorCB
<
TP
>
)
:
PromiseInterface
<
TP
>
Type parameters
TP
Parameters
Optional
successCB:
DeferredSuccessCB
<
T
,
TP
>
Optional
errorCB:
DeferredErrorCB
<
TP
>
Returns
PromiseInterface
<
TP
>
Type parameters
TP
Parameters
Optional
successCB:
DeferredSuccessCB
<
T
,
TP
>
Optional
errorCB:
ImmediateErrorCB
<
TP
>
Returns
PromiseInterface
<
TP
>
Type parameters
TP
Parameters
Optional
successCB:
ImmediateSuccessCB
<
T
,
TP
>
Optional
errorCB:
DeferredErrorCB
<
TP
>
Returns
PromiseInterface
<
TP
>
Type parameters
TP
Parameters
Optional
successCB:
ImmediateSuccessCB
<
T
,
TP
>
Optional
errorCB:
ImmediateErrorCB
<
TP
>
Returns
PromiseInterface
<
TP
>
Globals
Internals
"underscore.string"
packadic
components
plugins
storage
util
JSON
material
num
obj
promise
version
Externals
"async"
"bootstrap"
"eventemitter2"
"highlight.js"
"jquery"
"lodash"
JQueryUI
_
Promise
State
Client
Deferred
Promise
constructor
_deferred
always
otherwise
then
Deferred
ErrorCB
Deferred
Interface
Deferred
SuccessCB
Dispatcher
Interface
Immediate
ErrorCB
Immediate
SuccessCB
Promise
Interface
Thenable
Interface
Dispatch
Deferred
create
when