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

Function scopedWith

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

Source from the content-addressed store, hash-verified

6229
6230/** @internal */
6231export const scopedWith = <A, E, R>(
6232 f: (scope: Scope.Scope) => Effect.Effect<A, E, R>
6233): Stream.Stream<A, E, R> =>
6234 new StreamImpl(channel.scopedWith((scope) =>
6235 f(scope).pipe(
6236 Effect.map(Chunk.of)
6237 )
6238 ))
6239
6240/** @internal */
6241export 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