Instantiates a new task object of the given ID.
Instantiates a new task object of the given ID.
1 string id
the task ID of a task class registered previously via task:registerNew().
2 vararg data
any extra data to pass into the task object's :init method.
1 task
the instance of the class.