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

Function make

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

Source from the content-addressed store, hash-verified

364 * @since 4.0.0
365 */
366export const make = <In>(): make.Constructor<In> => (...fns: []) =>
367 fromTransform((upstream, scope) =>
368 pipe(
369 internalStream.fromChannel(Channel.fromPull(Effect.succeed(upstream))),
370 ...fns as any as [() => Effect.Effect<any>],
371 Effect.map((a) => [a] as End<any>),
372 Scope.provide(scope)
373 )
374 )
375
376/**
377 * 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
mapMethod · 0.45
provideMethod · 0.45

Tested by

no test coverage detected