http://glfwtfwhlsm2u5pw3b7crist7bt7fwepj2wgv3n3b64unj22v5435tyd.onion/blog/recreational-c++/2019/08/19/why-cooperative-multitasking-might-be-a-bad-idea.html
Here is some very basic python example that should clarify what I’m talking about: from asyncio import Event , run , gather async def foo ( event ): print ( "foo start" ) await event . wait () print ( "foo end" ) async def bar ( event ): print ( "bar start" ) event . set () print ( "bar end" ) async def main (): event = Event () await gather ( foo ( event ), bar ( event )) if __name__ == '__main__' : run ( main ()) The important piece of this code is the await keyword. await suspends the current task and...