MCPcopy
hub / github.com/npmx-dev/npmx.dev / cancelUnreadBatchResponses

Function cancelUnreadBatchResponses

server/utils/readme-loaders.ts:28–33  ·  view source on GitHub ↗
(
  responses: Array<Response | null>,
  startIndex: number,
)

Source from the content-addressed store, hash-verified

26}
27
28async function cancelUnreadBatchResponses(
29 responses: Array<Response | null>,
30 startIndex: number,
31): Promise<void> {
32 await Promise.allSettled(responses.slice(startIndex).map(response => response?.body?.cancel()))
33}
34
35function buildReadmeFetchCandidates(readmeFilename: string | undefined): string[] {
36 return readmeFilename

Callers 1

fetchReadmeFromJsdelivrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected