Hi, I'm a bit confused by the behaviour of loop.stop()
The asyncio docs states that: "Every callback scheduled before stop()<https://docs.python.org/dev/library/asyncio-eventloop.html#asyncio.BaseEventLoop.stop> is called will run." Still, when running asyncio from python3.4 on OS X 10.9.2, the following program does not end up calling the callback() function: import asyncio def callback(): print("CALLBACK CALLED") loop = asyncio.get_event_loop() loop.call_soon(callback) #loop.run_until_complete(asyncio.sleep(0)) loop.stop() Uncommenting the line calling asyncio.sleep(0) seems to fix the problem, and the callback is actually called. Is this expected behaviour?
