()
| 86 | } |
| 87 | |
| 88 | readStop() { |
| 89 | if (this.paused) { |
| 90 | return; |
| 91 | } |
| 92 | |
| 93 | if (this.started) { |
| 94 | this.paused = true; |
| 95 | localClearInterval(this._intervalHandle); |
| 96 | this._intervalHandle = undefined; |
| 97 | } else { |
| 98 | throw new Error('Can\'t pause reading an unstarted source.'); |
| 99 | } |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | function randomChunk(size) { |
no outgoing calls
no test coverage detected