Registers a task to be ticked.
The callback to be run from next tick. It will be removed once returns true.