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

Function mount

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

Source from the content-addressed store, hash-verified

965 },
966
967 mount<A>(this: Lifetime<any>, atom: Atom.Atom<A>): void {
968 if (this.disposed) return
969 this.addFinalizer(this.node.registry.mount(atom))
970 },
971
972 subscribe<A>(this: Lifetime<any>, atom: Atom.Atom<A>, f: (_: A) => void, options?: {
973 readonly immediate?: boolean

Callers

nothing calls this directly

Calls 2

addFinalizerMethod · 0.80
mountMethod · 0.65

Tested by

no test coverage detected