TGTGInsighttelegram intelligenceLIVE / telegram public index
Post content
Post content
http://stackoverflow.com/questions/29819151/what-should-i-decorate-with-asyncio-coroutine-for-async-operations If you have a function that needs to use yield from to call a #coroutine, you should #decorate it with asyncio.coroutine. Also note that coroutines are often (not always) "viral". As soon as you add yield from to a function it becomes a coroutine, and additionally any function that calls that coroutine usually (though not always) needs to be come a coroutine, too.