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

Function atomKey

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

Source from the content-addressed store, hash-verified

315
316const SerializableTypeId: Atom.SerializableTypeId = "~effect-atom/atom/Atom/Serializable"
317const atomKey = <A>(atom: Atom.Atom<A>): Atom.Atom<A> | string =>
318 SerializableTypeId in atom ? (atom as Atom.Serializable<any>)[SerializableTypeId].key : atom
319
320class RegistryImpl implements AtomRegistry {
321 readonly [TypeId]: TypeId

Callers 5

ensureNodeMethod · 0.85
scheduleAtomRemovalMethod · 0.85
removeNodeMethod · 0.85
setNodeTimeoutMethod · 0.85
sweepBucketMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected