Open this example in the interactive library
Source code
import asyncio
async def main():
return 'ready'
print(asyncio.run(main()))Sample output
ready

Run an async function. A self-contained example using the Python standard library.
Open this example in the interactive library
import asyncio
async def main():
return 'ready'
print(asyncio.run(main()))ready