MCPcopy
hub / github.com/Effect-TS/effect / contextWithSink

Function contextWithSink

packages/effect/src/internal/sink.ts:696–699  ·  view source on GitHub ↗
(
  f: (context: Context.Context<R0>) => Sink.Sink<A, In, L, E, R>
)

Source from the content-addressed store, hash-verified

694
695/** @internal */
696export const contextWithSink = <R0, A, In, L, E, R>(
697 f: (context: Context.Context<R0>) => Sink.Sink<A, In, L, E, R>
698): Sink.Sink<A, In, L, E, R0 | R> =>
699 new SinkImpl(channel.unwrap(Effect.contextWith((context) => toChannel(f(context)))))
700
701/** @internal */
702export const every = <In>(predicate: Predicate<In>): Sink.Sink<boolean, In, In> =>

Callers

nothing calls this directly

Calls 2

toChannelFunction · 0.70
fFunction · 0.50

Tested by

no test coverage detected