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

Function get

packages/effect/src/internal/stm/tRef.ts:59–59  ·  view source on GitHub ↗
(self: TRef.TRef<A>)

Source from the content-addressed store, hash-verified

57
58/** @internal */
59export const get = <A>(self: TRef.TRef<A>) => self.modify((a) => [a, a])
60
61/** @internal */
62export const set = dual<

Callers 1

tMap.tsFile · 0.70

Calls 1

modifyMethod · 0.65

Tested by

no test coverage detected