Search
Preparing search index...
The search index is not available
mighty-promise
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
mighty-promise
TaskQueue
Class TaskQueue
Hierarchy
TaskQueue
Index
Constructors
constructor
Properties
max
Parallel
Num
queue
task
Interval
workers
Accessors
running
Num
Methods
destroy
pause
push
start
Constructors
constructor
new
Task
Queue
(
__namedParameters
?:
{
maxParallelNum
?:
undefined
|
number
;
taskInterval
?:
undefined
|
number
}
)
:
TaskQueue
Parameters
__namedParameters:
{
maxParallelNum
?:
undefined
|
number
;
taskInterval
?:
undefined
|
number
}
= ...
Optional
max
Parallel
Num
?:
undefined
|
number
Optional
task
Interval
?:
undefined
|
number
Returns
TaskQueue
Properties
Private
max
Parallel
Num
max
Parallel
Num
:
number
= 1
Private
Readonly
queue
queue
:
Queue
<
Task
>
= ...
Private
task
Interval
task
Interval
:
number
= 0
Private
workers
workers
:
TaskWorker
[]
= ...
Accessors
running
Num
get
runningNum
(
)
:
number
Returns
number
Methods
destroy
destroy
(
)
:
void
Returns
void
pause
pause
(
)
:
void
Returns
void
push
push
(
task
:
Task
)
:
void
Parameters
task:
Task
Returns
void
start
start
(
)
:
void
Returns
void
Exports
Linked
List
Priority
Queue
Queue
Task
Queue
constructor
max
Parallel
Num
queue
task
Interval
workers
running
Num
destroy
pause
push
start
DAY
FRAME
HOUR
MINUTE
SECOND
delay
retry
Generated using
TypeDoc