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

Function toChannel

packages/effect/src/internal/sink.ts:1914–1919  ·  view source on GitHub ↗
(
  self: Sink.Sink<A, In, L, E, R>
)

Source from the content-addressed store, hash-verified

1912
1913/** @internal */
1914export const toChannel = <A, In, L, E, R>(
1915 self: Sink.Sink<A, In, L, E, R>
1916): Channel.Channel<Chunk.Chunk<L>, Chunk.Chunk<In>, E, never, A, unknown, R> =>
1917 Effect.isEffect(self) ?
1918 toChannel(fromEffect(self as Effect.Effect<A, E, R>)) :
1919 (self as SinkImpl<A, In, L, E, R>).channel
1920
1921/** @internal */
1922export const unwrap = <A, In, L, E2, R2, E, R>(

Callers 12

suspendFunction · 0.70
collectAllWhileWithLoopFunction · 0.70
collectLeftoverFunction · 0.70
sink.tsFile · 0.70
dropUntilFunction · 0.70
contextWithSinkFunction · 0.70
ignoreLeftoverFunction · 0.70
raceFunction · 0.70
serviceWithSinkFunction · 0.70
unwrapFunction · 0.70
unwrapScopedFunction · 0.70
unwrapScopedWithFunction · 0.70

Calls 1

fromEffectFunction · 0.70

Tested by

no test coverage detected