tomaszdrozdz <[email protected]> added the comment:
OK.
I understand.
So how about maybe:
def run(main, *, debug=False, loop=None):
...
if loop:
loop = events.new_event_loop()
So we could customize loop like:
loop = events.new_event_loop()
loop.set_XXX(...)
asyncio.run(my_coro, loop=loop)
Just what tehn with debug parameter ?
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue41202>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com