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

Function markTaskCanceled

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

Source from the content-addressed store, hash-verified

106}
107
108export function markTaskCanceled(
109 task: {
110 id: number,
111 priorityLevel: PriorityLevel,
112 ...
113 },
114 ms: number,
115) {
116 if (enableProfiling) {
117 if (eventLog !== null) {
118 logEvent([TaskCancelEvent, ms * 1000, task.id]);
119 }
120 }
121}
122
123export function markTaskErrored(
124 task: {

Callers 2

unstable_cancelCallbackFunction · 0.90
unstable_cancelCallbackFunction · 0.90

Calls 1

logEventFunction · 0.70

Tested by

no test coverage detected