[Python-ideas] Built-in function to run coroutines

Yury Selivanov yselivanov.ml at gmail.com
Mon Nov 14 13:30:35 EST 2016


Hi Guido,


On 2016-11-12 4:24 PM, Guido van Rossum wrote:
> I think there's a plan to add a run() function to asyncio, which would be
> something akin to
>
> def run(coro):
>      return get_event_loop().run_until_complete(coro)
>
> (but perhaps with better cleanup).

Please see https://github.com/python/asyncio/pull/465.

Yury


More information about the Python-ideas mailing list