MCPcopy Create free account
hub / github.com/algorithm-visualizer/algorithm-visualizer / resume

Function resume

src/components/Player/index.js:110–117  ·  view source on GitHub ↗
(wrap = false)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected