MCPcopy Index your code
hub / github.com/Effect-TS/effect / interruptAsFork

Method interruptAsFork

packages/effect/src/internal/fiberRuntime.ts:519–521  ·  view source on GitHub ↗

* In the background, interrupts the fiber as if interrupted from the specified fiber.

(fiberId: FiberId.FiberId)

Source from the content-addressed store, hash-verified

517 * In the background, interrupts the fiber as if interrupted from the specified fiber.
518 */
519 interruptAsFork(fiberId: FiberId.FiberId): Effect.Effect<void> {
520 return core.sync(() => this.tell(FiberMessage.interruptSignal(internalCause.interrupt(fiberId))))
521 }
522
523 /**
524 * In the background, interrupts the fiber as if interrupted from the specified fiber.

Callers

nothing calls this directly

Calls 3

tellMethod · 0.95
syncMethod · 0.80
interruptMethod · 0.45

Tested by

no test coverage detected