QueueSource now drops after completion (#25349) (#25552)

* QueueSource now drops after completion (#25349)

* Resolve Johan's review comments
This commit is contained in:
Heiko Seeberger 2018-09-03 07:03:28 +02:00 committed by Konrad `ktoso` Malawski
parent 887c56b562
commit 07dfdef620
2 changed files with 14 additions and 0 deletions

View file

@ -89,6 +89,9 @@ import scala.util.control.NonFatal
}
private val callback = getAsyncCallback[Input[T]] {
case Offer(_, promise) if terminating
promise.success(QueueOfferResult.Dropped)
case offer @ Offer(elem, promise)
if (maxBuffer != 0) {
bufferElem(offer)