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

Function markTaskYield

lib/assets/react-source/development/react.js:3264–3274  ·  view source on GitHub ↗
(task, ms)

Source from the content-addressed store, hash-verified

3262 }
3263 }
3264 function markTaskYield(task, ms) {
3265 {
3266 profilingState[PRIORITY] = NoPriority;
3267 profilingState[CURRENT_TASK_ID] = 0;
3268 profilingState[CURRENT_RUN_ID] = 0;
3269
3270 if (eventLog !== null) {
3271 logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]);
3272 }
3273 }
3274 }
3275 function markSchedulerSuspended(ms) {
3276 {
3277 mainThreadIdCounter++;

Callers 1

workLoopFunction · 0.85

Calls 1

logEventFunction · 0.85

Tested by

no test coverage detected