MCPcopy Create free account
hub / github.com/microsoft/SandDance / unstable_shouldYield

Function unstable_shouldYield

docs/external/js/react.development.js:2858–2863  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2856 }
2857
2858 function unstable_shouldYield() {
2859 var currentTime = getCurrentTime();
2860 advanceTimers(currentTime);
2861 var firstTask = peek(taskQueue);
2862 return firstTask !== currentTask && currentTask !== null && firstTask !== null && firstTask.callback !== null && firstTask.startTime <= currentTime && firstTask.expirationTime < currentTask.expirationTime || shouldYieldToHost();
2863 }
2864
2865 var unstable_requestPaint = requestPaint;
2866 var unstable_Profiling = {

Callers

nothing calls this directly

Calls 3

getCurrentTimeFunction · 0.85
advanceTimersFunction · 0.85
peekFunction · 0.70

Tested by

no test coverage detected