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

Function finishAbort

packages/react-server/src/ReactFlightServer.js:6112–6126  ·  view source on GitHub ↗
(
  request: Request,
  abortedTasks: Set<Task>,
  errorId: number,
)

Source from the content-addressed store, hash-verified

6110}
6111
6112function finishAbort(
6113 request: Request,
6114 abortedTasks: Set<Task>,
6115 errorId: number,
6116): void {
6117 try {
6118 abortedTasks.forEach(task => finishAbortedTask(task, request, errorId));
6119 const onAllReady = request.onAllReady;
6120 onAllReady();
6121 flushCompletedChunks(request);
6122 } catch (error) {
6123 logRecoverableError(request, error, null);
6124 fatalError(request, error);
6125 }
6126}
6127
6128export function abort(request: Request, reason: mixed): void {
6129 // We define any status below OPEN as OPEN equivalent

Callers 1

abortFunction · 0.85

Calls 6

finishAbortedTaskFunction · 0.85
flushCompletedChunksFunction · 0.85
logRecoverableErrorFunction · 0.70
fatalErrorFunction · 0.70
forEachMethod · 0.65
onAllReadyFunction · 0.50

Tested by

no test coverage detected