0

I want to emit events after non periodic intervals and I want to set the interval for emission of each event programatically using Rxjava in Android. How do I do that?

Ryan M
  • 18,333
  • 31
  • 67
  • 74
NIKHIL AGGARWAL
  • 448
  • 4
  • 9

1 Answers1

1

You probably want one of the Observable.delay operators that takes a function to specify the delay for each item: http://reactivex.io/RxJava/2.x/javadoc/io/reactivex/Observable.html#delay-io.reactivex.functions.Function-

Ryan M
  • 18,333
  • 31
  • 67
  • 74