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

Function markTaskErrored

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

Source from the content-addressed store, hash-verified

121}
122
123export function markTaskErrored(
124 task: {
125 id: number,
126 priorityLevel: PriorityLevel,
127 ...
128 },
129 ms: number,
130) {
131 if (enableProfiling) {
132 if (eventLog !== null) {
133 logEvent([TaskErrorEvent, ms * 1000, task.id]);
134 }
135 }
136}
137
138export function markTaskRun(
139 task: {

Callers 2

flushWorkFunction · 0.90
flushWorkFunction · 0.90

Calls 1

logEventFunction · 0.70

Tested by

no test coverage detected