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

Function unwrap

packages/effect/src/Stream.ts:1633–1635  ·  view source on GitHub ↗
(
  effect: Effect.Effect<Stream<A, E2, R2>, E, R>
)

Source from the content-addressed store, hash-verified

1631 * @since 2.0.0
1632 */
1633export const unwrap = <A, E2, R2, E, R>(
1634 effect: Effect.Effect<Stream<A, E2, R2>, E, R>
1635): Stream<A, E | E2, R2 | Exclude<R, Scope.Scope>> => fromChannel(Channel.unwrap(Effect.map(effect, toChannel)))
1636
1637/**
1638 * Runs a stream that requires `Scope` in a managed scope, ensuring its

Callers 4

fromIterableEffectFunction · 0.70
fromArrayEffectFunction · 0.70
Stream.tsFile · 0.70
loopFunction · 0.70

Calls 2

fromChannelFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected