Practicing writing coroutines in python 3.6,
Noticed that both in:
from asyncio import coroutine
And in:
from types import coroutine
There are 2 decorators which on first glance do the same..
Reading the documentation of first(from asyncio)
Decorator to mark coroutine
And the second one (from types):
Convert regular generator function to coroutine.
Confused me even more..
I know i can use async yield from in python3.6, so i get lost to really understand the difference between the two.
Please assist