Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
0fbab3ab3f
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      docs/userguide/tasks.rst

+ 2 - 3
docs/userguide/tasks.rst

@@ -997,12 +997,11 @@ will do roughly this behind the scenes:
 
 .. code-block:: python
 
-    @app.task
-    class AddTask(Task):
+    class _AddTask(app.Task):
 
         def run(self, x, y):
             return x + y
-    add = registry.tasks[AddTask.name]
+    add = app.tasks[_AddTask.name]
 
 
 Instantiation