onTick
Implement/override this method to run code repeatedly during the Task's lifetime.
The task will be in the Ticking state throughout this callback. Ticking tasks remain in the Ticking state until they return true
(to indicate completion) or are cancelled.
Cancellation in this stage invokes onFinish.
Return
true
to end the task successfully, or else false
to continue ticking.