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

Function make

packages/effect/src/Sink.ts:353–361  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

351 * @since 4.0.0
352 */
353export const make = <In>(): make.Constructor<In> => (...fns: []) =>
354 fromTransform((upstream, scope) =>
355 pipe(
356 internalStream.fromChannel(Channel.fromPull(Effect.succeed(upstream))),
357 ...fns as any as [() => Effect.Effect<any>],
358 Effect.flatMap((a) => Cause.done<End<any>>([a])),
359 Scope.provide(scope)
360 )
361 )
362
363/**
364 * Companion namespace containing overload types for the pipe-style sink

Callers

nothing calls this directly

Calls 5

pipeFunction · 0.90
fromTransformFunction · 0.70
succeedMethod · 0.45
doneMethod · 0.45
provideMethod · 0.45

Tested by

no test coverage detected