When defining a task on a DataService class, formerly a Task object was created which replaced the decorated method as a class attribute. This caused errors when using multiple instances of that class, as each instance was referring to the same Task. This descriptor class now handles the tasks per instance of the service class.
When defining a task on a
DataService
class, formerly aTask
object was created which replaced the decorated method as a class attribute. This caused errors when using multiple instances of that class, as each instance was referring to the sameTask
. This descriptor class now handles the tasks per instance of the service class.