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

Function incrementAndGet

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

Source from the content-addressed store, hash-verified

611 * @since 2.0.0
612 */
613export const incrementAndGet = (self: MutableRef<number>): number => updateAndGet(self, (n) => n + 1)
614
615/**
616 * Sets the MutableRef to a new value and returns the reference.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected