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

Function fresh

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

Source from the content-addressed store, hash-verified

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

Callers 1

retryLoopFunction · 0.85

Calls 1

createMethod · 0.80

Tested by

no test coverage detected