MCPcopy
hub / github.com/Effect-TS/effect / fiberInterrupt

Function fiberInterrupt

packages/effect/src/Micro.ts:625–629  ·  view source on GitHub ↗
(self: MicroFiber<A, E>)

Source from the content-addressed store, hash-verified

623 * @category MicroFiber
624 */
625export const fiberInterrupt = <A, E>(self: MicroFiber<A, E>): Micro<void> =>
626 suspend(() => {
627 self.unsafeInterrupt()
628 return asVoid(fiberAwait(self))
629 })
630
631/**
632 * @since 3.11.0

Callers 1

Micro.tsFile · 0.85

Calls 4

fiberAwaitFunction · 0.85
unsafeInterruptMethod · 0.80
suspendFunction · 0.70
asVoidFunction · 0.70

Tested by

no test coverage detected