* If flush is active, queue the items and return true. * If flush is not active, return false (caller should send directly).
(...items: T[])
| 44 | * If flush is not active, return false (caller should send directly). |
| 45 | */ |
| 46 | enqueue(...items: T[]): boolean { |
| 47 | if (!this._active) return false |
| 48 | this._pending.push(...items) |
| 49 | return true |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Discard all queued items (permanent transport close). |
no test coverage detected