You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as the current Buffer's clear, dropHead and dropTail just returns Unit, change it to returnsSeq[T] or T will help , but that can involve: 1. large amount of change across the codebase, 2. hurt performance for clear case.
So seems better to just add a new dedicated implementation with onBackPressureDrop as reactor-core?
He-Pin
changed the title
Add Flow#onBackpressure(T elem) operator
Add Flow#onBackpressureDrop() operator
Jun 24, 2024
Motivation:
I want to do some rate limiting and just fail the single task, eg when combined with
mapAsync
.Currently seems I can't observe the backpressure.
onBackpressure
is only been called once downstream backpressure.What do you think?
In reactor-core, there is:
reactor.core.publisher.Flux#onBackpressureDrop(java.util.function.Consumer<? super T>)
This is what I would like to make use.
The text was updated successfully, but these errors were encountered: