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

Function get

repos/effect/packages/effect/src/unstable/reactivity/AtomRegistry.ts:858–865  ·  view source on GitHub ↗
(this: Lifetime<any>, atom: Atom.Atom<A>)

Source from the content-addressed store, hash-verified

856 return (this as Lifetime<any>).node.registry
857 },
858
859 addFinalizer(this: Lifetime<any>, f: () => void): void {
860 if (this.disposed) return f()
861 this.finalizers ??= []
862 this.finalizers.push(f)
863 },
864
865 get<A>(this: Lifetime<any>, atom: Atom.Atom<A>): A {
866 if (this.disposed) {
867 return this.node.registry.get(atom)
868 }

Callers 4

Atom.tsFile · 0.70
factoryFunction · 0.70
readFunction · 0.70
withFallbackFunction · 0.70

Calls 4

ensureNodeMethod · 0.80
addParentMethod · 0.80
getMethod · 0.65
valueMethod · 0.65

Tested by

no test coverage detected