Create a task loop executing check, wait, action.