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

Function atomKey

packages/effect/src/reactivity/AtomRegistry.ts:370–371  ·  view source on GitHub ↗
(atom: Atom.Atom<A>)

Source from the content-addressed store, hash-verified

368
369const SerializableTypeId: Atom.SerializableTypeId = "~effect-atom/atom/Atom/Serializable"
370const atomKey = <A>(atom: Atom.Atom<A>): Atom.Atom<A> | string =>
371 SerializableTypeId in atom ? (atom as Atom.Serializable<any>)[SerializableTypeId].key : atom
372
373class RegistryImpl implements AtomRegistry {
374 readonly [TypeId]: TypeId

Callers 6

hasMethod · 0.85
ensureNodeMethod · 0.85
scheduleAtomRemovalMethod · 0.85
removeNodeMethod · 0.85
setNodeTimeoutMethod · 0.85
RegistryImplClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected