()
| 45 | } |
| 46 | |
| 47 | private flush() { |
| 48 | while (this._current) { |
| 49 | // atm the given _process is responsible for implementing proper try/catch handling |
| 50 | // we assume here that this won't throw in a way that can affect this mailbox |
| 51 | const consumed = this._current; |
| 52 | this._process(consumed.value); |
| 53 | this._current = consumed.next; |
| 54 | } |
| 55 | this._last = null; |
| 56 | } |
| 57 | } |
no test coverage detected