=str #16338 Emit final elements in mapConcat
This commit is contained in:
parent
523605349c
commit
837ce3eb12
2 changed files with 21 additions and 1 deletions
|
|
@ -54,7 +54,11 @@ private[akka] final case class MapConcat[In, Out](f: In ⇒ immutable.Seq[Out])
|
|||
|
||||
override def onPull(ctxt: Context[Out]): Directive =
|
||||
if (currentIterator.hasNext) ctxt.push(currentIterator.next())
|
||||
else if (isFinishing) ctxt.finish()
|
||||
else ctxt.pull()
|
||||
|
||||
override def onUpstreamFinish(ctxt: Context[Out]): TerminationDirective =
|
||||
ctxt.absorbTermination()
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -284,4 +288,4 @@ private[akka] final case class Expand[In, Out, Seed](seed: In ⇒ Seed, extrapol
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue