Handling of exceptions and documentation #33
-
Hi! Thank you for writing this useful library! I couldn't find any documentation about exceptions. Can we use Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi @fersarr! Have you already experimented what the behavior looks like? From my memory, I don’t think I actually specified what the exceptions behavior should be. But I assume it should match what anyio does: either raise an exception from any function if it occurs, or raise an exception group if exceptions occur in multiple concurrent functions? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response! Yea,
So this allows me to finish all the processing for all the independent concurrent tasks and then handle exceptions if I want to. Is that clear? Let me know if you need more information. Example code which attempts 10 requests but it stops processing after there is one exception (unlike the
Results in:
|
Beta Was this translation helpful? Give feedback.
-
Answered via #33 (reply in thread) |
Beta Was this translation helpful? Give feedback.
Answered via #33 (reply in thread)