register

Registers a task to be ticked.

Parameters

task

The callback to be run from next tick. It will be removed once returns true.