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

Function unwrapScopedWith

packages/effect/src/internal/sink.ts:1940–1949  ·  view source on GitHub ↗
(
  f: (scope: Scope.Scope) => Effect.Effect<Sink.Sink<A, In, L, E, R>, E, R>
)

Source from the content-addressed store, hash-verified

1938
1939/** @internal */
1940export const unwrapScopedWith = <A, In, L, E, R>(
1941 f: (scope: Scope.Scope) => Effect.Effect<Sink.Sink<A, In, L, E, R>, E, R>
1942): Sink.Sink<A, In, L, E, R> =>
1943 new SinkImpl(
1944 channel.unwrapScopedWith((scope) =>
1945 f(scope).pipe(
1946 Effect.map((sink) => toChannel(sink))
1947 )
1948 )
1949 )
1950
1951/** @internal */
1952export const withDuration = <A, In, L, E, R>(

Callers 1

sink.tsFile · 0.70

Calls 4

toChannelFunction · 0.70
pipeMethod · 0.65
mapMethod · 0.65
fFunction · 0.50

Tested by

no test coverage detected