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

Function markTaskCompleted

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

Source from the content-addressed store, hash-verified

3219 }
3220 }
3221 function markTaskCompleted(task, ms) {
3222 {
3223 profilingState[PRIORITY] = NoPriority;
3224 profilingState[CURRENT_TASK_ID] = 0;
3225 profilingState[QUEUE_SIZE]--;
3226
3227 if (eventLog !== null) {
3228 logEvent([TaskCompleteEvent, ms * 1000, task.id]);
3229 }
3230 }
3231 }
3232 function markTaskCanceled(task, ms) {
3233 {
3234 profilingState[QUEUE_SIZE]--;

Callers 1

workLoopFunction · 0.85

Calls 1

logEventFunction · 0.85

Tested by

no test coverage detected