Skip to content

Commit

Permalink
=str Make decider in MapAsyncUnordered lazy.
Browse files Browse the repository at this point in the history
  • Loading branch information
He-Pin committed Sep 3, 2023
1 parent 9f2a9e6 commit 73c4fe9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1402,8 +1402,7 @@ private[stream] object Collect {
new GraphStageLogic(shape) with InHandler with OutHandler {
override def toString = s"MapAsyncUnordered.Logic(inFlight=$inFlight, buffer=$buffer)"

private val decider =
inheritedAttributes.mandatoryAttribute[SupervisionStrategy].decider
private lazy val decider = inheritedAttributes.mandatoryAttribute[SupervisionStrategy].decider

private var inFlight = 0
private var buffer: BufferImpl[Out] = _
Expand Down

0 comments on commit 73c4fe9

Please sign in to comment.