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

Function unwrapScoped

packages/effect/src/internal/channel.ts:2314–2321  ·  view source on GitHub ↗
(
  self: Effect.Effect<Channel.Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, E, R>
)

Source from the content-addressed store, hash-verified

2312
2313/** @internal */
2314export const unwrapScoped = <OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, E, R>(
2315 self: Effect.Effect<Channel.Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, E, R>
2316): Channel.Channel<OutElem, InElem, E | OutErr, InErr, OutDone, InDone, Env | Exclude<R, Scope.Scope>> =>
2317 core.concatAllWith(
2318 scoped(self),
2319 (d, _) => d,
2320 (d, _) => d
2321 )
2322
2323/** @internal */
2324export const unwrapScopedWith = <OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, E, R>(

Callers 2

fromPubSubFunction · 0.70
scopedWithFunction · 0.70

Calls 1

scopedFunction · 0.70

Tested by

no test coverage detected