(requireBlocking)
| 191 | } |
| 192 | |
| 193 | _commandable(requireBlocking) { |
| 194 | if (requireBlocking ? this.paused : this._isClosed) { |
| 195 | return Promise.reject(new Error('closed')); |
| 196 | } |
| 197 | |
| 198 | if (this._isReady) { |
| 199 | return Promise.resolve(requireBlocking ? this.bclient : this.client); |
| 200 | } |
| 201 | |
| 202 | return this._ready.then(() => this._commandable(requireBlocking)); |
| 203 | } |
| 204 | |
| 205 | close(timeout, cb) { |
| 206 | if (typeof timeout === 'function') { |
no outgoing calls
no test coverage detected