* Queue the given `item` under the given `key` to be processed at a later time by calling * `serve(key)`.
(key: T, item: QueueRecord[T])
| 6 | * `serve(key)`. |
| 7 | */ |
| 8 | _enqueue<T extends keyof QueueRecord>(key: T, item: QueueRecord[T]) { |
| 9 | if (!this._queue.has(key)) this._queue.set(key, new Set()); |
| 10 | this._queue.get(key)!.add(item); |
| 11 | } |
| 12 | |
| 13 | /** |
| 14 | * Process all items in queue for the given `key`. |
no test coverage detected