MCPcopy Create free account
hub / github.com/Effect-TS/effect / unwrap

Function unwrap

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

Source from the content-addressed store, hash-verified

2307
2308/** @internal */
2309export const unwrap = <OutElem, InElem, OutErr, InErr, OutDone, InDone, R2, E, R>(
2310 channel: Effect.Effect<Channel.Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, R2>, E, R>
2311): Channel.Channel<OutElem, InElem, E | OutErr, InErr, OutDone, InDone, R | R2> => flatten(core.fromEffect(channel))
2312
2313/** @internal */
2314export const unwrapScoped = <OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, E, R>(

Callers 5

doBufferFunction · 0.70
fromInputFunction · 0.70
channel.tsFile · 0.70
goFunction · 0.70
scopedFunction · 0.70

Calls 2

fromEffectMethod · 0.80
flattenFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…