epsy / clize

CLIze: Turn Python functions into command-line interfaces

Home Page:http://clize.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add asyncio bootstrapper decorator

epsy opened this issue · comments

The decorator would allow the use of async functions by running them using loop.run_until_complete. This should be implemented in a way that doesn't prevent execution if asyncio isn't present. (import within the decorator will do)

Any update on this?

Myself i'm using asyncio.run(), that's a higher level API. I think that's the one we should be using here.