MCPcopy Create free account
hub / github.com/melonjs/melonJS / _stopRunLoop

Function _stopRunLoop

packages/melonjs/src/state/state.ts:165–169  ·  view source on GitHub ↗

* stop the SO main loop * @ignore

()

Source from the content-addressed store, hash-verified

163 * @ignore
164 */
165function _stopRunLoop(): void {
166 // cancel any previous animationRequestFrame
167 globalThis.cancelAnimationFrame(_animFrameId);
168 _animFrameId = -1;
169}
170
171/**
172 * start the SO main loop

Callers 2

_switchStateFunction · 0.85
stopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected