Awaitility, Java

Fixed repetition in thread

What to do when you have to run some thread and make it do the same things for X times? We can do it in several ways, but today I am going to show you achieve it using ExecutorService implementations:

  • scheduled thread executor
  • single thread executor

Continue reading

Advertisements