* QueueSource now drops after completion (#25349) * Resolve Johan's review comments
This commit is contained in:
parent
887c56b562
commit
07dfdef620
2 changed files with 14 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue