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

Function unwrap

packages/effect/src/internal/sink.ts:1922–1927  ·  view source on GitHub ↗
(
  effect: Effect.Effect<Sink.Sink<A, In, L, E2, R2>, E, R>
)

Source from the content-addressed store, hash-verified

1920
1921/** @internal */
1922export const unwrap = <A, In, L, E2, R2, E, R>(
1923 effect: Effect.Effect<Sink.Sink<A, In, L, E2, R2>, E, R>
1924): Sink.Sink<A, In, L, E | E2, R | R2> =>
1925 new SinkImpl(
1926 channel.unwrap(pipe(effect, Effect.map((sink) => toChannel(sink))))
1927 )
1928
1929/** @internal */
1930export const unwrapScoped = <A, In, L, E, R>(

Callers

nothing calls this directly

Calls 3

pipeFunction · 0.70
toChannelFunction · 0.70
mapMethod · 0.65

Tested by

no test coverage detected