MCPcopy Create free account
hub / github.com/FastLED/FastLED / yield

Function yield

src/platforms/wasm/timer.cpp.hpp:118–121  ·  view source on GitHub ↗

Replacement for 'yield' in WebAssembly context

Source from the content-addressed store, hash-verified

116
117// Replacement for 'yield' in WebAssembly context
118EMSCRIPTEN_KEEPALIVE void yield() {
119 // Use emscripten_yield to allow the browser to perform other tasks
120 fl::delay(0);
121}
122}
123
124#endif // FL_IS_WASM

Callers 6

waitMethod · 0.50
readLineNativeFunction · 0.50
thread_stub_stl.hFile · 0.50
time_stub.cpp.hppFile · 0.50
readLineNativeFunction · 0.50

Calls 1

delayFunction · 0.70

Tested by

no test coverage detected