handleTick

Handles a single tick of this task, decreases the countdown and calls the onTick lifecycle function.

If the countdown reaches 0 this function will stop this task via stop and call the onExpire lifecycle function.

If ticks are disabled by allowTick, this function does nothing.