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

Function cancel

packages/effect/src/Stream.ts:10971–10974  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10969 })
10970 },
10971 cancel() {
10972 if (!fiber) return
10973 return Effect.runPromise(Effect.asVoid(Fiber.interrupt(fiber)))
10974 }
10975 }, options?.strategy)
10976 }
10977)

Callers 2

getFunction · 0.50
Atom.test.tsFile · 0.50

Calls 1

interruptMethod · 0.45

Tested by 1

getFunction · 0.40