Behavior of `asyncio.gather` when one of submitted tasks raises a `KeyboardInterrupt`.
"Yves Duprat" <[email protected]>
| Newsgroups | gmane.comp.python.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, regarding this [issue93122](https://github.com/python/cpython/issues/93122), I am wondering what is the normal behavior of `asyncio.gather` when one of the submitted tasks raises a `KeyboardInterrupt` exception ? -- regardless of the value of the `return_exception` parameter. It seems that this primitive does not behave the same way with `KeyboardInterrupt` and `ZeroDivisionError` exceptions. But may be it is normal ? I have searched in the documentation [here](https://docs.python.org/3/library/asyncio-task.html#asyncio.gather) but I did not find anything. Thanks for your help. Yves