-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Description
ananas::MakeReadyFuture()
.Then([] {
throw std::runtime_error("rrrrrrrrrrrrrrrrrrr");
return std::string{"Hello1"};
})
.Then([](ananas::Try<std::string>&& str) {
try {
std::string a = str;
std::cout << a << std::endl;
return 100;
} catch (const std::runtime_error&) {
std::cout << "xxxxxx" << std::endl;
// 希望发生异常以后 退出 这个回调链
return 888;
}
})
.Then([](int nn) {
std::cout << nn << std::endl;
});
Metadata
Metadata
Assignees
Labels
No labels