MCPcopy Create free account
hub / github.com/reactjs/react-rails / unstable_shouldYield

Function unstable_shouldYield

lib/assets/react-source/development/react.js:3656–3661  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3654 }
3655
3656 function unstable_shouldYield() {
3657 var currentTime = exports.unstable_now();
3658 advanceTimers(currentTime);
3659 var firstTask = peek(taskQueue);
3660 return firstTask !== currentTask && currentTask !== null && firstTask !== null && firstTask.callback !== null && firstTask.startTime <= currentTime && firstTask.expirationTime < currentTask.expirationTime || shouldYieldToHost();
3661 }
3662
3663 var unstable_requestPaint = requestPaint;
3664 var unstable_Profiling = {

Callers

nothing calls this directly

Calls 2

advanceTimersFunction · 0.85
peekFunction · 0.70

Tested by

no test coverage detected