Counting task
This task is used for repeating actions being sent to the server, and then automatically stopping after a certain amount of runs.
Creating the task
To create a new delayed task, simply instantiate the CountingTask class and override the run() method:
You can also cancel a task before it is executed:
Additionally, you can get the task id by doing the following:
Last updated
Was this helpful?