MCPcopy
hub / github.com/plotly/dash / markTaskYield

Function markTaskYield

dash/deps/react@16.14.0.js:2466–2476  ·  view source on GitHub ↗
(task, ms)

Source from the content-addressed store, hash-verified

2464 }
2465 }
2466 function markTaskYield(task, ms) {
2467 {
2468 profilingState[PRIORITY] = NoPriority;
2469 profilingState[CURRENT_TASK_ID] = 0;
2470 profilingState[CURRENT_RUN_ID] = 0;
2471
2472 if (eventLog !== null) {
2473 logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]);
2474 }
2475 }
2476 }
2477 function markSchedulerSuspended(ms) {
2478 {
2479 mainThreadIdCounter++;

Callers 1

workLoopFunction · 0.85

Calls 1

logEventFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…