effect 3.4.7 → 3.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1607,11 +1607,12 @@ export const mergeWith = dual<
1607
1607
  (input) => {
1608
1608
  const queueReader = fromInput(input)
1609
1609
  return Effect.map(
1610
- Effect.zip(
1610
+ Effect.all([
1611
1611
  toPull(core.pipeTo(queueReader, self)),
1612
- toPull(core.pipeTo(queueReader, options.other))
1613
- ),
1614
- ([pullL, pullR]) => {
1612
+ toPull(core.pipeTo(queueReader, options.other)),
1613
+ Effect.scope
1614
+ ]),
1615
+ ([pullL, pullR, scope]) => {
1615
1616
  type State = MergeState.MergeState<
1616
1617
  Env | Env1,
1617
1618
  OutErr,
@@ -1806,8 +1807,8 @@ export const mergeWith = dual<
1806
1807
  return pipe(
1807
1808
  core.fromEffect(
1808
1809
  Effect.zipWith(
1809
- Effect.forkDaemon(pullL),
1810
- Effect.forkDaemon(pullR),
1810
+ Effect.forkIn(pullL, scope),
1811
+ Effect.forkIn(pullR, scope),
1811
1812
  (left, right): State =>
1812
1813
  mergeState.BothRunning<
1813
1814
  Env | Env1,
@@ -1,4 +1,4 @@
1
- let moduleVersion = "3.4.7"
1
+ let moduleVersion = "3.4.8"
2
2
 
3
3
  export const getCurrentVersion = () => moduleVersion
4
4