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

Method notify

packages/effect/src/unstable/reactivity/AtomRef.ts:133–139  ·  view source on GitHub ↗
(a: A)

Source from the content-addressed store, hash-verified

131 listeners: Listener<A> | null = null
132
133 notify(a: A) {
134 let listener = this.listeners
135 while (listener !== null) {
136 listener.f(a)
137 listener = listener.next
138 }
139 }
140
141 subscribe(f: (a: A) => void): () => void {
142 const listener: Listener<A> = {

Callers

nothing calls this directly

Calls 1

fMethod · 0.80

Tested by

no test coverage detected