MCPcopy
hub / github.com/facebook/react / markTaskCompleted

Function markTaskCompleted

packages/scheduler/src/SchedulerProfiling.js:93–106  ·  view source on GitHub ↗
(
  task: {
    id: number,
    priorityLevel: PriorityLevel,
    ...
  },
  ms: number,
)

Source from the content-addressed store, hash-verified

91}
92
93export function markTaskCompleted(
94 task: {
95 id: number,
96 priorityLevel: PriorityLevel,
97 ...
98 },
99 ms: number,
100) {
101 if (enableProfiling) {
102 if (eventLog !== null) {
103 logEvent([TaskCompleteEvent, ms * 1000, task.id]);
104 }
105 }
106}
107
108export function markTaskCanceled(
109 task: {

Callers 2

workLoopFunction · 0.90
workLoopFunction · 0.90

Calls 1

logEventFunction · 0.70

Tested by

no test coverage detected