
why can i use asyncio.run near the tick sign but not at the cross sign?
when am i supposed to use asyncio.run and when to use await?

why can i use asyncio.run near the tick sign but not at the cross sign?
when am i supposed to use asyncio.run and when to use await?
Hey @devchopra999_11c6416ab7f09bbf,
You can use it at only tick sign because there should be exactly one call to asyncio.run() in whole code, which will block until all coroutines have finished. Inside any coroutine, you can use await to suspend the current function, and asyncio will resume the function at some future time. All of this happens inside the asyncio.run() function, which schedules what functions can run when. Now i think you have understood when to use await and when run.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.