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

Function effectDiscard

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

Source from the content-addressed store, hash-verified

1155 * @since 2.0.0
1156 */
1157export const effectDiscard = <X, E, R>(effect: Effect<X, E, R>): Layer<never, E, Exclude<R, Scope.Scope>> =>
1158 effectContext(internalEffect.as(effect, Context.empty()))
1159
1160/**
1161 * Constructs a layer lazily using the specified factory.

Callers

nothing calls this directly

Calls 1

effectContextFunction · 0.85

Tested by

no test coverage detected