Files
Chromacase/poc_hardware/test.py
Louis Auzuret cc85121465 poc in folder
2022-05-05 11:26:57 +02:00

15 lines
328 B
Python

import asyncio
async def nested():
return 42
async def main():
# Schedule nested() to run soon concurrently
# with "main()".
task = asyncio.create_task(nested())
# "task" can now be used to cancel "nested()", or
# can simply be awaited to wait until it is complete:
await task
asyncio.run(main())