A function that will repeatedly be called in the thread created by a Task.
user data passed to the function