When I ran the code below with @asyncio.coroutine
decorator on Python 3.11.0:
import asyncio
@asyncio.coroutine # Here
def test():
print("Test")
asyncio.run(test())
I got the error below:
AttributeError: module 'asyncio' has no attribute 'coroutine'. Did you mean: 'coroutines'?
I find @asyncio.coroutine
decorator is used for some code as far as I googled.
So, how can I solve this error?