There's a source that emits items asynchronously, in my case in the order of 10 items withing some seconds.
- I want to handle all of them.
- In order of appearance
- One at a time
- Handling of each might take long (like 1-5 seconds)
- There might be new items while one is being handled
At the moment I'm porting a Java app to C#. In the RxJava world there's the onBackpressureBuffer
method, whereas in Rx.Net there are a bunch of different ones and cannot figure out the equivalent.
I guess I could use Buffer()
with a zero delay and use the produced enumerable, but seems to be hacky.
edit: please read comments before voting negatively