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

Function effectDiscard

packages/effect/src/Layer.ts:1106–1107  ·  view source on GitHub ↗
(effect: Effect<X, E, R>)

Source from the content-addressed store, hash-verified

1104 * @since 2.0.0
1105 */
1106export const effectDiscard = <X, E, R>(effect: Effect<X, E, R>): Layer<never, E, Exclude<R, Scope.Scope>> =>
1107 effectContext(internalEffect.as(effect, Context.empty()))
1108
1109/**
1110 * Constructs a layer lazily using the specified factory.

Callers

nothing calls this directly

Calls 1

effectContextFunction · 0.85

Tested by

no test coverage detected