* Submit an entry to the queue and run it according to the WorkMode. * * Note: make sure start() has been called at some point.
(entry: Work)
| 54 | * Note: make sure start() has been called at some point. |
| 55 | */ |
| 56 | submit(entry: Work) { |
| 57 | this.queue.push(entry); |
| 58 | this.notifyQueue(); |
| 59 | this.logState(); |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Begin processing work from the queue. |
no test coverage detected