@asyncio.coroutine
def hello():
return "foo"
Although not for long, they deprecated it in 3.8 and will be removed in 3.10. I wish they would leave it, since I was able to use them to write API that could be synchronous or not depending which constructor was invoked. I'm wondering if there are better ways to do it.
A lot of people who talk about massive gains seem to forget about code review.
Then in a company someone who has to review is is f*cked because that code is much more complex and takes much longer to review.