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

Function unwrap

packages/effect/src/Sink.ts:2028–2030  ·  view source on GitHub ↗
(
  effect: Effect.Effect<Sink<A, In, L, E, R2>, E, R>
)

Source from the content-addressed store, hash-verified

2026 * @since 2.0.0
2027 */
2028export const unwrap = <A, In, L, E, R, R2>(
2029 effect: Effect.Effect<Sink<A, In, L, E, R2>, E, R>
2030): Sink<A, In, L, E, Exclude<R, Scope.Scope> | R2> => fromChannel(Channel.unwrap(Effect.map(effect, toChannel)))
2031
2032/**
2033 * Runs a summary effect when the sink starts and again when it completes.

Callers 4

Channel.tsFile · 0.70
fromPubSubFunction · 0.70
fromPubSubArrayFunction · 0.70
fromPubSubTakeFunction · 0.70

Calls 2

fromChannelFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected