()
| 79 | let stopped = false; |
| 80 | |
| 81 | const stop = () => { |
| 82 | stopped = true; |
| 83 | cancelAnimationFrame(frame); |
| 84 | window.clearTimeout(timeout); |
| 85 | window.clearInterval(poll); |
| 86 | observer?.disconnect(); |
| 87 | controller.abort(); |
| 88 | if (activeRestoration === stop) { |
| 89 | activeRestoration = undefined; |
| 90 | } |
| 91 | }; |
| 92 | |
| 93 | const restore = () => { |
| 94 | if (stopped) { |
no outgoing calls
no test coverage detected