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

Function cancel

packages/effect/src/internal/stream.ts:7283–7286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7281 })
7282 },
7283 cancel() {
7284 if (!fiber) return
7285 return Effect.runPromise(Effect.asVoid(Fiber.interrupt(fiber)))
7286 }
7287 }, options?.strategy)
7288 }
7289)

Callers 1

handleExitFunction · 0.85

Calls 1

interruptMethod · 0.45

Tested by

no test coverage detected