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

Function get

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

Source from the content-addressed store, hash-verified

213 * @since 2.0.0
214 */
215export const get = <A>(self: SubscriptionRef<A>): Effect.Effect<A> => Effect.sync(() => self.value)
216
217/**
218 * Retrieves the current value and sets a new value atomically, notifying

Callers

nothing calls this directly

Calls 1

syncMethod · 0.45

Tested by

no test coverage detected