MCPcopy Create free account
hub / github.com/Effect-TS/effect / cancel

Function cancel

packages/effect/src/http/HttpServerRequest.ts:1142–1144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1140 const limit = contentLength ?? maxBytes
1141 const reader = source.body.getReader()
1142 const cancel = () => {
1143 reader.cancel().catch(() => {})
1144 }
1145 signal.addEventListener("abort", cancel, { once: true })
1146 const chunks: Array<Uint8Array> = []
1147 let bytes = 0

Callers 1

readArrayBufferLimitedFunction · 0.70

Calls 1

cancelMethod · 0.45

Tested by

no test coverage detected