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

Function get

packages/effect/src/Resource.ts:154–155  ·  view source on GitHub ↗
(self: Resource<A, E>)

Source from the content-addressed store, hash-verified

152 * @since 2.0.0
153 */
154export const get = <A, E>(self: Resource<A, E>): Effect.Effect<A, E> =>
155 Effect.flatMap(ScopedRef.get(self.scopedRef), identity)
156
157/**
158 * Re-runs this resource's acquisition effect and updates the current value.

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected