MCPcopy Index your code
hub / github.com/Effect-TS/effect / scoped

Function scoped

packages/effect/src/internal/stream.ts:6187–6190  ·  view source on GitHub ↗
(
  effect: Effect.Effect<A, E, R>
)

Source from the content-addressed store, hash-verified

6185
6186/** @internal */
6187export const scoped = <A, E, R>(
6188 effect: Effect.Effect<A, E, R>
6189): Stream.Stream<A, E, Exclude<R, Scope.Scope>> =>
6190 new StreamImpl(channel.ensuring(channel.scoped(pipe(effect, Effect.map(Chunk.of))), Effect.void))
6191
6192/** @internal */
6193export const scopedWith = <A, E, R>(

Callers 5

acquireReleaseFunction · 0.70
fromChunkPubSubFunction · 0.70
fromPubSubFunction · 0.70
unwrapScopedFunction · 0.70
unwrapScopedFunction · 0.70

Calls 2

pipeFunction · 0.70
mapMethod · 0.65

Tested by

no test coverage detected