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

Function inFallback

packages/effect/src/ui/internal/kernel.ts:573–581  ·  view source on GitHub ↗
(owner: Instance, f: () => A)

Source from the content-addressed store, hash-verified

571}
572
573const inFallback = <A>(owner: Instance, f: () => A): A => {
574 const outer = fallen
575 fallen = owner
576 try {
577 return f()
578 } finally {
579 fallen = outer
580 }
581}
582
583const rootFallback = (
584 inst: Instance,

Callers 3

showFallbackFunction · 0.85
settleFunction · 0.85
patchChildFunction · 0.85

Calls 1

fFunction · 0.50

Tested by

no test coverage detected