(wrap = false)
| 108 | } |
| 109 | |
| 110 | resume(wrap = false) { |
| 111 | this.pause(); |
| 112 | if (this.next() || (wrap && this.props.setCursor(1))) { |
| 113 | const interval = 4000 / Math.pow(Math.E, this.state.speed); |
| 114 | this.timer = window.setTimeout(() => this.resume(), interval); |
| 115 | this.setState({ playing: true }); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | pause() { |
| 120 | if (this.timer) { |
nothing calls this directly
no outgoing calls
no test coverage detected