Registers a task.
a delegate of a function that will be called every interval
number of ticks indicating between the calls
number of times to repeat the task
the new task id that can be used to remove the task
See Implementation
Registers a task.