Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
asyncio-graph.rst
1 parent 0b15d9c commit c05a851Copy full SHA for c05a851
1 file changed
Doc/library/asyncio-graph.rst
@@ -59,13 +59,13 @@ and debuggers.
59
60
async def main():
61
async with asyncio.TaskGroup() as g:
62
- g.create_task(test())
+ g.create_task(test(), name='test')
63
64
asyncio.run(main())
65
66
will print::
67
68
- * Task(name='Task-2', id=0x1039f0fe0)
+ * Task(name='test', id=0x1039f0fe0)
69
+ Call stack:
70
| File 't2.py', line 4, in async test()
71
+ Awaited by:
0 commit comments