[Python-Dev] Importance of "async" keyword

Andrew Svetlov andrew.svetlov at gmail.com
Thu Jun 25 21:11:43 CEST 2015

> Another issue that bothers me, is code reuse. Independent from whether the
> 'async def' makes sense or not, it would not allow us to reuse asyncio
> functions as if they were normal functions and vice versa (if I understood
> that correctly). So, we would have to implement things twice for the asyncio
> world and the classic world. To me, it would be important to use one
> function in either world where it suits me better. I am uncertain if that
> makes sense but right now it does to me.

Yes, you cannot call async function from synchronous code. There are
two worlds: classic and async.

More information about the Python-Dev mailing list