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

Function fromInput

packages/effect/src/internal/channel.ts:672–681  ·  view source on GitHub ↗
(
  input: SingleProducerAsyncInput.AsyncInputConsumer<Err, Elem, Done>
)

Source from the content-addressed store, hash-verified

670
671/** @internal */
672export const fromInput = <Err, Elem, Done>(
673 input: SingleProducerAsyncInput.AsyncInputConsumer<Err, Elem, Done>
674): Channel.Channel<Elem, unknown, Err, unknown, Done, unknown> =>
675 unwrap(
676 input.takeWith(
677 core.failCause,
678 (elem) => core.flatMap(core.write(elem), () => fromInput(input)),
679 core.succeed
680 )
681 )
682
683/** @internal */
684export const fromPubSub = <Done, Err, Elem>(

Callers 3

channel.tsFile · 0.70
mergeAllWithFunction · 0.70
mergeFunction · 0.70

Calls 3

unwrapFunction · 0.70
takeWithMethod · 0.65
writeMethod · 0.65

Tested by

no test coverage detected