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

Method update

packages/effect/src/unstable/reactivity/AtomRef.ts:189–191  ·  view source on GitHub ↗
(f: (value: A) => A)

Source from the content-addressed store, hash-verified

187 }
188
189 update(f: (value: A) => A) {
190 return this.set(f(this.value))
191 }
192}
193
194class MapRefImpl<A, B> implements ReadonlyRef<B> {

Callers 3

Atom.tsFile · 0.45
makeRepositoryFunction · 0.45
HttpClient.tsFile · 0.45

Calls 2

setMethod · 0.95
fFunction · 0.50

Tested by

no test coverage detected