There are 2 TimerTask tell me how to stop them for a while.

Need to do 2 requests. One every 15 sec. another every 30.

Is it possible to pause them somehow, and after the answer comes to Broadcast, then continue working in one or another TimerTask

You need to make 2 get requests in TimerTask, otherwise they conflict.

  • Learn multithreading and questions disappear. - And
  • All this is done without problems through RxJava - Yuriy SPb
  • You probably did not understand. I start 3 timers. 1 work every 5 sec. next 10 next 15. It so happens that a conflict occurs. Since the server is slow and the delay before receiving can be as much as 4 seconds. For this, I wanted to know how to stop 2 and 3 threads while it is executed 1. after 2 after 3, etc. in a circle - Andro

0