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

Function unwrapScoped

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

Source from the content-addressed store, hash-verified

1928
1929/** @internal */
1930export const unwrapScoped = <A, In, L, E, R>(
1931 effect: Effect.Effect<Sink.Sink<A, In, L, E, R>, E, R>
1932): Sink.Sink<A, In, L, E, Exclude<R, Scope.Scope>> =>
1933 new SinkImpl(
1934 channel.unwrapScoped(effect.pipe(
1935 Effect.map((sink) => toChannel(sink))
1936 ))
1937 )
1938
1939/** @internal */
1940export const unwrapScopedWith = <A, In, L, E, R>(

Callers 1

fromQueueFunction · 0.70

Calls 3

toChannelFunction · 0.70
pipeMethod · 0.65
mapMethod · 0.65

Tested by

no test coverage detected