-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.x: Add onDropped callbacks to operators #7458
Comments
Hi - do you need any help with some of these? |
@Desislav-Petrov you can have a stab at them. I won't have the time for weeks although there is no rush either. |
Thanks, starting this week and will follow your PR per method strategy - I've started with throttleFirst |
hi @akarnokd - i'm looking at throttleLast. From what I see, we should change the public void onNext(T t) method in the *SampleTimed class. More precisely, when we do the lazySet() we should check if a value exists there - if so we need to call the onDropped with this value as this is what we're dropping. |
Thx - leave this with me, will do a PR shortly. |
taking a look at throttleWithTimeout / debounce next |
Looking at onBackpressureLatest next |
* 3.x: Add onDropped callback to onBackpressureBuffer Related #7458 * MBE is expected * Annotate with experimental
Add
onDropped
callback overloads to most operators that drop items that can't be recovered by other means.throttleLatest
PR #7457throttleFirst
PR #7482throttleLast
/sample
PR #7488throttleWithTimeout
/debounce
PR #7510onBackpressureLatest
(PR #7458)onBackpressureBuffer
(PR #7567)Action
are somewhat unhelpful, however, we'll have to add overloads in a way that avoids lambda ambiguity.The text was updated successfully, but these errors were encountered: