new Queue(callback, thisObj)
This is a simple object that represents a callback and an array
of argument groups that will be passed to it at a later time.
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
callback |
Function | ||
thisObj |
Object |
<optional> |
- Since:
- 1.0
- Source:
- Queue.js, line 13
Extends
- Array
Members
-
callback :Function
-
Callback that items will be applied to.
- Since:
- 1.0
- Source:
- Queue.js, line 36
-
thisObj :Object
-
Context that the callback will be applied to.
- Since:
- 1.0
- Source:
- Queue.js, line 42
Methods
-
clear() → {Array}
-
Removes all items from the queue.
- Since:
- 1.0
- Source:
- Queue.js, line 127
Returns:
- Type
- Array
-
destroy() → {Array}
-
Removes all instance properties.
- Since:
- 1.0
- Source:
- Queue.js, line 57
Returns:
- Type
- Array
-
popApply(thisObj) → {mixed|null}
-
Parameters:
Name Type Description thisObj
Object - Since:
- 1.0
- Source:
- Queue.js, line 70
Returns:
The return of Queue#callback- Type
- mixed | null
-
shiftApply(thisObj) → {mixed|null}
-
Parameters:
Name Type Description thisObj
Object - Since:
- 1.0
- Source:
- Queue.js, line 85
Returns:
The return of Queue#callback- Type
- mixed | null
-
spliceApply(index, howMany, thisObj) → {Array|null}
-
Parameters:
Name Type Description index
int howMany
uint thisObj
Object - Since:
- 1.0
- Source:
- Queue.js, line 102
Returns:
All the results of Queue#callback- Type
- Array | null