Search code examples
rx-javarx-java2project-reactor

What are the Flux equivalents of debounce, throttleFirst, and throttleLast


debounce, throttleFirst, and throttleLast are most conspicuously absent from Project Reactor's Flux. Do they have any counterparts?


Solution

  • The sample operators are the once relating to the behavior you're searching for.

    sampleTimeout could be used as debounce.
    sampleFirst could be used as throttleFirst.
    sample could be used as throttleLast.