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

Function scoped

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

Source from the content-addressed store, hash-verified

6223
6224/** @internal */
6225export const scoped = <A, E, R>(
6226 effect: Effect.Effect<A, E, R>
6227): Stream.Stream<A, E, Exclude<R, Scope.Scope>> =>
6228 new StreamImpl(channel.ensuring(channel.scoped(pipe(effect, Effect.map(Chunk.of))), Effect.void))
6229
6230/** @internal */
6231export 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