1 parent 6d6c261 commit d978218Copy full SHA for d978218
1 file changed
docs/DOCS.md
@@ -34,18 +34,18 @@ Where this is the definition of app.py:
34
```py
35
# ../src/aiotaskq/tests/apps/simple_app/app.py
36
37
+import asyncio
38
+
39
from .tasks import join
40
41
42
if __name__ == "__main__": # pragma: no cover
- from asyncio import get_event_loop
43
44
async def main():
45
ret = await join.apply_async(["Hello", "World"], delimiter=" ")
46
print(ret)
47
- loop = get_event_loop()
48
- loop.run_until_complete(main())
+ asyncio.run(main())
49
50
```
51
0 commit comments