- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 6
 
Open
Description
Hey!
Boost allows you to catch exceptions from the coroutine caller, so this totally works there:
try {
    co_await connect_to_server();
} catch (const connection_refused&) {
    std::cerr << "Connection refused\n";
}
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
Metadata
Metadata
Assignees
Labels
No labels