| 160 | let shipper = this._activeShipper = wait |
| 161 | .then(() => { |
| 162 | let more = drained => { |
| 163 | if (drained) { |
| 164 | // If the queue was drained, let the timer |
| 165 | // push us forwards. |
| 166 | return true; |
| 167 | } |
| 168 | return this._sendBatch().then(d => more(d)); |
| 169 | } |
| 170 | return this._sendBatch().then(drained => more(drained)); |
| 171 | }) |
| 172 | .then(() => this._reset(shipper), e => { |
nothing calls this directly
no test coverage detected