=str #17191 mapAsyncUnordered shall terminate after resume

This commit is contained in:
Roland Kuhn 2015-04-14 12:39:24 +02:00
parent 386ff80a0e
commit 7681c557f7
3 changed files with 22 additions and 1 deletions

View file

@ -468,6 +468,7 @@ private[akka] final case class MapAsyncUnordered[In, Out](parallelism: Int, f: I
def ignoreOrFail(ex: Throwable) =
if (decider(ex) == Supervision.Stop) ctx.fail(ex)
else if (ctx.isHoldingUpstream) ctx.pull()
else if (ctx.isFinishing && todo == 0) ctx.finish()
else ctx.ignore()
inFlight -= 1