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

Function get

packages/effect/src/TxRef.ts:285–289  ·  view source on GitHub ↗
(self: TxRef<A>)

Source from the content-addressed store, hash-verified

283 * @since 2.0.0
284 */
285export const get = <A>(self: TxRef<A>): Effect.Effect<A> =>
286 Effect.Transaction.pipe(
287 Effect.map((state) => journalEntry(state, self).value),
288 Effect.tx
289 )
290
291/**
292 * Sets the value of the `TxRef`.

Callers

nothing calls this directly

Calls 3

journalEntryFunction · 0.85
pipeMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected