MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / safeSetTimeout

Function safeSetTimeout

src/lib/libbrowser.js:308–313  ·  view source on GitHub ↗
(func, timeout)

Source from the content-addressed store, hash-verified

306 // abort and pause-aware versions TODO: build main loop on top of this?
307
308 safeSetTimeout(func, timeout) {
309 // Legacy function, this is used by the SDL2 port so we need to keep it
310 // around at least until that is updated.
311 // See https://github.com/libsdl-org/SDL/pull/6304
312 return safeSetTimeout(func, timeout);
313 },
314
315 getMimetype(name) {
316 return {

Callers 7

looperFunction · 0.85
initFunction · 0.85
libbrowser.jsFile · 0.85
libeventloop.jsFile · 0.85
libsdl.jsFile · 0.85
callbackFunction · 0.85
libglut.jsFile · 0.85

Calls

no outgoing calls

Tested by 1

looperFunction · 0.68