MCPcopy Create free account
hub / github.com/effect-app/libs / decrement

Function decrement

repos/effect/packages/effect/src/MutableRef.ts:210–210  ·  view source on GitHub ↗
(self: MutableRef<number>)

Source from the content-addressed store, hash-verified

208 * MutableRef.decrement(counter)
209 *
210 * MutableRef.get(counter) // => 2
211 *
212 * // Useful for countdown scenarios
213 * const countdown = MutableRef.make(10)

Callers

nothing calls this directly

Calls 1

updateFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…