MCPcopy Index your code
hub / github.com/Effect-TS/effect / fresh

Function fresh

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

Source from the content-addressed store, hash-verified

583
584/** @internal */
585export const fresh = <A, E, R>(self: Layer.Layer<A, E, R>): Layer.Layer<A, E, R> => {
586 const fresh = Object.create(proto)
587 fresh._op_layer = OpCodes.OP_FRESH
588 fresh.layer = self
589 return fresh
590}
591
592/** @internal */
593export const fromEffect = dual<

Callers 1

retryLoopFunction · 0.85

Calls 1

createMethod · 0.80

Tested by

no test coverage detected