You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libasync however, doesn't seem to allow that, it just executes std::terminate. Imo this is quite bad, since one of the reasons for why I wanted coroutines is so that I can use exceptions instead of error codes... and here I am again, using error codes :-/
There should at least be an optional feature to allow this!
Thanks
niansa
The text was updated successfully, but these errors were encountered:
There's no technical reason why this cannot work, we just didn't implement it. If you have a (partial) implementation, we'd gladly merge it.
Adding support to the basic coroutine types (like async::result) would probably be easy, propagating it through all algorithms might be a bit more work.
Hey!
Boost allows you to catch exceptions from the coroutine caller, so this totally works there:
libasync however, doesn't seem to allow that, it just executes
std::terminate
. Imo this is quite bad, since one of the reasons for why I wanted coroutines is so that I can use exceptions instead of error codes... and here I am again, using error codes :-/There should at least be an optional feature to allow this!
Thanks
niansa
The text was updated successfully, but these errors were encountered: