* Discard all queued items (permanent transport close). * Returns the number of items dropped.
()
| 54 | * Returns the number of items dropped. |
| 55 | */ |
| 56 | drop(): number { |
| 57 | this._active = false |
| 58 | const count = this._pending.length |
| 59 | this._pending.length = 0 |
| 60 | return count |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * Clear the active flag without dropping queued items. |
no outgoing calls
no test coverage detected