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

Function fiberStackAnnotations

packages/effect/src/internal/effect.ts:906–911  ·  view source on GitHub ↗
(fiber: Fiber.Fiber<any, any>)

Source from the content-addressed store, hash-verified

904}
905
906const fiberStackAnnotations = (fiber: Fiber.Fiber<any, any>) => {
907 if (!fiber.cache.stackFrame) return undefined
908 const annotations = new Map<string, unknown>()
909 annotations.set(InterruptorStackTrace.key, fiber.cache.stackFrame)
910 return Context.makeUnsafe(annotations)
911}
912
913const fiberInterruptChildren = <A, E>(fiber: FiberImpl<A, E>, exit: Exit.Exit<A, E>) => {
914 if (fiber._children === undefined || fiber._children.size === 0) {

Callers 5

effect.tsFile · 0.85
fiberInterruptAllFunction · 0.85
raceAllFunction · 0.85
raceAllFirstFunction · 0.85
interruptRaceLosersFunction · 0.85

Calls 1

setMethod · 0.65

Tested by

no test coverage detected