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

Function scopedWith

packages/effect/src/internal/stream.ts:6193–6200  ·  view source on GitHub ↗
(
  f: (scope: Scope.Scope) => Effect.Effect<A, E, R>
)

Source from the content-addressed store, hash-verified

6191
6192/** @internal */
6193export const scopedWith = <A, E, R>(
6194 f: (scope: Scope.Scope) => Effect.Effect<A, E, R>
6195): Stream.Stream<A, E, R> =>
6196 new StreamImpl(channel.scopedWith((scope) =>
6197 f(scope).pipe(
6198 Effect.map(Chunk.of)
6199 )
6200 ))
6201
6202/** @internal */
6203export const some = <A, E, R>(self: Stream.Stream<Option.Option<A>, E, R>): Stream.Stream<A, Option.Option<E>, R> =>

Callers 2

stream.tsFile · 0.70
unwrapScopedWithFunction · 0.70

Calls 3

pipeMethod · 0.65
mapMethod · 0.65
fFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…