* Creates an instance of TaskQueue.
()
| 25 | * Creates an instance of TaskQueue. |
| 26 | */ |
| 27 | constructor() { |
| 28 | /** @private @const {!Array<!TaskDef>} */ |
| 29 | this.tasks_ = []; |
| 30 | |
| 31 | /** @private @const {!{[key: string]: !TaskDef}} */ |
| 32 | this.taskIdMap_ = {}; |
| 33 | |
| 34 | /** @private {!time} */ |
| 35 | this.lastEnqueueTime_ = 0; |
| 36 | |
| 37 | /** @private {!time} */ |
| 38 | this.lastDequeueTime_ = 0; |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Size of the queue. |
nothing calls this directly
no outgoing calls
no test coverage detected