The ability to yield in handle methods. Requires asynchronous generators in Python 3.6.
In [1]: class FutureHandler(Handler):
...: async def on_message(self, packet):
...: if "future" in packet:
...: yield "See you in the future!"
...: await asyncio.sleep(60)
...: yield "Hey, look, it's the future!"
The ability to
yield
in handle methods. Requires asynchronous generators in Python 3.6.