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

Function abort

packages/platform/node/src/NodeHttpClient.ts:267–271  ·  view source on GitHub ↗
(error: globalThis.Error)

Source from the content-addressed store, hash-verified

265 let body: UpgradeResponseBody | undefined
266 let reason: globalThis.Error | undefined
267 const abort = (error: globalThis.Error) => {
268 reason ??= error
269 if (body !== undefined) body.destroy(error)
270 else controller?.abort(error)
271 }
272 const onAbort = () => abort(signal.reason)
273 const fail = (cause: unknown) =>
274 resume(Effect.fail(

Callers 2

onAbortFunction · 0.70
dispatchUpgradeFunction · 0.70

Calls 2

abortMethod · 0.65
destroyMethod · 0.45

Tested by

no test coverage detected