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
Deferred
Class Deferred<T>
Type parameters
T
Hierarchy
Deferred
Implements
DeferredInterface
<
T
>
Index
Constructors
constructor
Properties
_dispatcher
_error
_stack
_state
_value
promise
Methods
_reject
_resolve
_then
reject
resolve
Constructors
constructor
new
Deferred
(
_dispatcher
:
DispatcherInterface
)
:
Deferred
Parameters
_dispatcher:
DispatcherInterface
Returns
Deferred
Properties
Private
_dispatcher
_dispatcher
:
DispatcherInterface
Private
_error
_error
:
any
Private
_stack
_stack
:
Array
<
Client
>
Private
_state
_state
:
PromiseState
Private
_value
_value
:
T
promise
promise
:
PromiseInterface
<
T
>
Methods
Private
_reject
_reject
(
error
?:
any
)
:
DeferredInterface
<
T
>
Parameters
Optional
error:
any
Returns
DeferredInterface
<
T
>
Private
_resolve
_resolve
(
value
:
any
)
:
DeferredInterface
<
T
>
Parameters
value:
any
Returns
DeferredInterface
<
T
>
_then
_then
(
successCB
:
any
, errorCB
:
any
)
:
any
Parameters
successCB:
any
errorCB:
any
Returns
any
reject
reject
(
error
?:
any
)
:
DeferredInterface
<
T
>
Parameters
Optional
error:
any
Returns
DeferredInterface
<
T
>
resolve
resolve
(
value
?:
T
)
:
DeferredInterface
<
T
>
resolve
(
value
?:
PromiseInterface
<
T
>
)
:
DeferredInterface
<
T
>
Parameters
Optional
value:
T
Returns
DeferredInterface
<
T
>
Parameters
Optional
value:
PromiseInterface
<
T
>
Returns
DeferredInterface
<
T
>
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
constructor
_dispatcher
_error
_stack
_state
_value
promise
_reject
_resolve
_then
reject
resolve
Promise
Deferred
ErrorCB
Deferred
Interface
Deferred
SuccessCB
Dispatcher
Interface
Immediate
ErrorCB
Immediate
SuccessCB
Promise
Interface
Thenable
Interface
Dispatch
Deferred
create
when