You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/guide.md
+6-12Lines changed: 6 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -422,13 +422,7 @@ Stream.range(1,10).scan(0)(_ + _).toList // running sum
422
422
423
423
FS2 comes with lots of concurrent operations. The `merge` function runs two streams concurrently, combining their outputs. It halts when both inputs have halted:
Oops, we need a `cats.effect.unsafe.IORuntime` in implicit scope. Let's add that:
425
+
We need a `cats.effect.unsafe.IORuntime` in implicit scope. Let's add that:
432
426
433
427
```scala mdoc
434
428
importcats.effect.IO
@@ -441,7 +435,7 @@ The `merge` function supports concurrency. FS2 has a number of other useful conc
441
435
442
436
Depending on how you want to halt the resulting stream, you can use either of the three variants of the `merge` method: `mergeHaltR`, `mergeHaltL`, and `mergeHaltBoth`. The resulting stream will terminate whenever the right stream halts, the left stream halts, or the stream on either side halts, respectively:
0 commit comments