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

Function fresh

packages/effect/src/Layer.ts:2160–2161  ·  view source on GitHub ↗
(self: Layer<A, E, R>)

Source from the content-addressed store, hash-verified

2158 * @since 2.0.0
2159 */
2160export const fresh = <A, E, R>(self: Layer<A, E, R>): Layer<A, E, R> =>
2161 fromBuildUnsafe((_, scope) => self.build(makeMemoMapUnsafe(), scope))
2162
2163/**
2164 * Builds this layer and keeps it alive until the returned effect is interrupted.

Callers

nothing calls this directly

Calls 3

fromBuildUnsafeFunction · 0.85
makeMemoMapUnsafeFunction · 0.85
buildMethod · 0.80

Tested by

no test coverage detected