Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How are errors/panics/exceptions in finish-async blocks handled? #144

Open
dumblob opened this issue Jul 14, 2021 · 1 comment
Open

How are errors/panics/exceptions in finish-async blocks handled? #144

dumblob opened this issue Jul 14, 2021 · 1 comment

Comments

@dumblob
Copy link

dumblob commented Jul 14, 2021

Structured concurrency is finding its way into popular languages and libraries. It's though not one identical concept, it's actually several variants and the world is now searching and evaluating which ones are better and which ones worse.

One of the major differences between structured concurrency implementations is how errors in spawned threads are handled and how they are (if at all) passed somewhere else.

Could you shed some light how finish-async blocks behave in case of an unrecoverable error in one spawned thread appears? Feel free to put emphasis on problems described in https://github.com/vorner/vorner.github.io/blob/master/_posts/2018-07-22-dont_panic.md .


Just for the record an example of another major difference between implementations is e.g. support for real os-level threads (i.e. leveraging the power of more than one CPU core).

@mukul-rathi
Copy link
Owner

Thank you for your interesting question, the truth is that I haven’t really thought too much about error-handling yet. This language was written for my undergraduate dissertation so as a result is likely still missing core language features like error handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants