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

The boundary "eats" exceptions #127

Open
ghost opened this issue Jul 23, 2011 · 2 comments
Open

The boundary "eats" exceptions #127

ghost opened this issue Jul 23, 2011 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 23, 2011

When using sync blocks, exceptions in the sync block are eaten by the boundary. It'd be much better to catch those and throw them back at user next time sync blocks are used on the same context.

@txdv
Copy link
Contributor

txdv commented Jul 23, 2011

Or lets wait for C# 5.0! No, seriously, this is an issue :) Action<Exception> !

@ghost
Copy link
Author

ghost commented Jul 23, 2011

Unfortunately, no. The exception inside the boundary must propagate out of the context thread, to the person that called into the boundary. Action can't do that. Firing the callback on the next call into the boundary works, of course, but that's inferior to just throwing the exception outright.

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

1 participant