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

Function unwrap

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

Source from the content-addressed store, hash-verified

1908 * @since 2.0.0
1909 */
1910export const unwrap = <A, In, L, E, R, R2>(
1911 effect: Effect.Effect<Sink<A, In, L, E, R2>, E, R>
1912): Sink<A, In, L, E, Exclude<R, Scope.Scope> | R2> => fromChannel(Channel.unwrap(Effect.map(effect, toChannel)))
1913
1914/**
1915 * 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