LeeCampbell / RxCookbook

Collection of recipes and snippets helping you create useful Rx code
280 stars 39 forks source link

Buffer with time/count + flush #24

Open LeeCampbell opened 8 years ago

LeeCampbell commented 8 years ago

I see often a request for something like a Buffer(TimeSpan), but they also want to have some other trigger that can invoke a flush of the buffer. It seems that this would be a good case of showing how to use GroupJoin

http://stackoverflow.com/questions/33775889/rx-buffer-with-timeout-since-first-new-group-element