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

Function decrementAndGet

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

Source from the content-addressed store, hash-verified

265 * @since 2.0.0
266 */
267export const decrementAndGet = (self: MutableRef<number>): number => updateAndGet(self, (n) => n - 1)
268
269/**
270 * Gets the current value of the MutableRef.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected