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

Function unwrapScopedWith

packages/effect/src/internal/channel.ts:2324–2331  ·  view source on GitHub ↗
(
  f: (scope: Scope.Scope) => Effect.Effect<Channel.Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, E, R>
)

Source from the content-addressed store, hash-verified

2322
2323/** @internal */
2324export const unwrapScopedWith = <OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, E, R>(
2325 f: (scope: Scope.Scope) => Effect.Effect<Channel.Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, E, R>
2326): Channel.Channel<OutElem, InElem, E | OutErr, InErr, OutDone, InDone, R | Env> =>
2327 core.concatAllWith(
2328 scopedWith(f),
2329 (d, _) => d,
2330 (d, _) => d
2331 )
2332
2333/** @internal */
2334export const updateService = dual<

Callers 2

channel.tsFile · 0.70
mergeAllWithFunction · 0.70

Calls 1

scopedWithFunction · 0.70

Tested by

no test coverage detected