Author asvetlov
Recipients Assaf Dayan, asvetlov, yselivanov
Date 2019-04-19.08:42:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In asyncio `await asyncio.sleep(0)` is for switching execution context from the current task to other code. 
There is no guarantee for finishing already running tasks before returning from `asyncio.sleep(0)` call etc.

Also, your code snippet has a logical error. It should not call regular `time.sleep(123)` from a coroutine but use `loop.run_in_executor()` for performing blocking calls
Date User Action Args
2019-04-19 08:42:09asvetlovsetrecipients: + asvetlov, yselivanov, Assaf Dayan
2019-04-19 08:42:09asvetlovsetmessageid: <>
2019-04-19 08:42:09asvetlovlinkissue36295 messages
2019-04-19 08:42:09asvetlovcreate