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

Function makeInner

packages/effect/test/Stream.test.ts:1348–1353  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1346 )
1347 )
1348 const makeInner = () => {
1349 started.openUnsafe()
1350 return (inner === "never" ? Stream.never : Stream.fromEffect(Effect.sleep(Duration.hours(1)))).pipe(
1351 Stream.ensuring(Ref.update(finalized, (n) => n + 1))
1352 )
1353 }
1354 const stream = combinator === "flatMap"
1355 ? Stream.flatMap(outer, makeInner, { concurrency: 2 })
1356 : Stream.switchMap(outer, makeInner)

Callers

nothing calls this directly

Calls 4

openUnsafeMethod · 0.65
pipeMethod · 0.65
sleepMethod · 0.65
updateMethod · 0.45

Tested by

no test coverage detected