MCPcopy Create free account
hub / github.com/effect-app/libs / loop

Function loop

repos/effect/packages/effect/src/internal/effect.ts:750–765  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

748 | undefined
749}
750
751const fiberStackAnnotations = (fiber: Fiber.Fiber<any, any>) => {
752 if (!fiber.currentStackFrame) return undefined
753 const annotations = new Map<string, unknown>()
754 annotations.set(InterruptorStackTrace.key, fiber.currentStackFrame)
755 return Context.makeUnsafe(annotations)
756}
757
758const fiberInterruptChildren = (fiber: FiberImpl) => {
759 if (fiber._children === undefined || fiber._children.size === 0) {
760 return undefined
761 }
762 return fiberInterruptAll(fiber._children)
763}
764
765/** @internal */
766export const fiberAwait = <A, E>(
767 self: Fiber.Fiber<A, E>
768): Effect.Effect<Exit.Exit<A, E>> => {

Callers 2

fiberAwaitAllFunction · 0.70
effect.tsFile · 0.70

Calls 5

pushMethod · 0.80
addObserverMethod · 0.80
succeedFunction · 0.70
nextMethod · 0.65
resumeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…