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

Function scoped

packages/effect/src/Stream.ts:1666–1668  ·  view source on GitHub ↗
(
  self: Stream<A, E, R>
)

Source from the content-addressed store, hash-verified

1664 * @since 2.0.0
1665 */
1666export const scoped = <A, E, R>(
1667 self: Stream<A, E, R>
1668): Stream<A, E, Exclude<R, Scope.Scope>> => fromChannel(Channel.scoped(self.channel))
1669
1670/**
1671 * Transforms the elements of this stream using the supplied function.

Callers

nothing calls this directly

Calls 1

fromChannelFunction · 0.70

Tested by

no test coverage detected