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
Hi, I'm currently working on downloads in my app and I want to use throttleTime to reduce the amount of updates I sent when using my Bloc.
The question is:
Is there a way to receive the first event immediately , wait for a certain duration and emit the last event after that, and repeat until u reach the end and u also emit the last emitted state?
I tried with .throttleTime(Duration(seconds:2), trailing: true, leading: true)
but seems that it doesn't work as expected. I receive all the updates and is not waiting for that window of time.
I'm using rxdart: 0.27.7
The text was updated successfully, but these errors were encountered:
Hi, I'm currently working on downloads in my app and I want to use throttleTime to reduce the amount of updates I sent when using my Bloc.
The question is:
Is there a way to receive the first event immediately , wait for a certain duration and emit the last event after that, and repeat until u reach the end and u also emit the last emitted state?
I tried with
.throttleTime(Duration(seconds:2), trailing: true, leading: true)
but seems that it doesn't work as expected. I receive all the updates and is not waiting for that window of time.
I'm using
rxdart: 0.27.7
The text was updated successfully, but these errors were encountered: