status-im / nim-chronos

Chronos - An efficient library for asynchronous programming
https://status-im.github.io/nim-chronos/docs/chronos
Apache License 2.0
353 stars 51 forks source link

per-function `Exception` handling #457

Closed arnetheduck closed 10 months ago

arnetheduck commented 11 months ago

This PR replaces the global strict exception mode with an option to handle Exception per function while at the same time enabling strict exception checking globally by default as has been planned for v4.

handleException mode raises AsyncExceptionError to distinguish it from ValueError which may originate from user code.

arnetheduck commented 11 months ago

draft until #455 is merged