I just want to inform that "yield from" and "@coroutine" are now deprecated. So the article needs a bit of an update:
Note: Support for generator-based coroutines is deprecated and is scheduled for removal in Python 3.10.
References: - https://docs.python.org/3/library/asyncio-task.html#generato... - https://docs.python.org/3/whatsnew/3.7.html - https://bugs.python.org/issue36921