What is the right way to pause inside a coroutine without blocking the event loop in Python?
Correct answer
C. await asyncio.sleep()
5 views
C. await asyncio.sleep()
5 views
time.sleep blocks the whole thread, asyncio.sleep yields control.
Asked in: Python Interview Advanced
https://docs.python.org/3/library/index.htmlNot sure why the answer is C? Ask here and get an explanation.