Skip to content

Commit

Permalink
scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nikiforo committed Oct 9, 2021
1 parent 71911a5 commit 5ab1f90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/shared/src/main/scala/fs2/Stream.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2046,9 +2046,9 @@ final class Stream[+F[_], +O] private[fs2] (private[fs2] val underlying: Pull[F,
private def parEvalMapAction[F2[x] >: F[
x
]: Concurrent, O2, T](
maxConcurrent: Int,
f: O => F2[O2],
)(init: Channel[F2, F2[O2]] => F2[O2 => F2[Unit]]): Stream[F2, O2] =
maxConcurrent: Int,
f: O => F2[O2]
)(initFork: Channel[F2, F2[O2]] => F2[O2 => F2[Unit]]): Stream[F2, O2] =
if (maxConcurrent == 1) evalMap(f)
else {
assert(maxConcurrent > 0, "maxConcurrent must be > 0, was: " + maxConcurrent)
Expand Down Expand Up @@ -2096,7 +2096,7 @@ final class Stream[+F[_], +O] private[fs2] (private[fs2] val underlying: Pull[F,

def forkOnElem(el: O): F2[Unit] =
semaphore.acquire *>
init(channel).flatMap { send =>
initFork(channel).flatMap { send =>
f(el).attempt
.race(stopReading.get)
.flatMap {
Expand Down

0 comments on commit 5ab1f90

Please sign in to comment.