MCPcopy Index your code
hub / github.com/Effect-TS/effect / toggle

Function toggle

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

Source from the content-addressed store, hash-verified

200 * @category boolean
201 */
202export const toggle = (self: MutableRef<boolean>): MutableRef<boolean> => update(self, (_) => !_)

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…