Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python run async function without await

import asyncio

async def main():
    print('Hello ...')
    await asyncio.sleep(1)
    print('... World!')

# Python 3.7+
asyncio.run(main())
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #python #run #async #function #await
ADD COMMENT
Topic
Name
5+2 =