May 2017
Intermediate to advanced
414 pages
13h
English
If we run the preceding application, we will see the following output 10 times:
Hi, Do you know i do the same task again and again
So when we create the scheduler, it can be assigned to the Cancellable interface type, which exposes the cancel method. Thus, we can cancel the scheduler. In our case, we canceled the scheduler when it ran 10 times.
Read now
Unlock full access