We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a322a1c commit 5476633Copy full SHA for 5476633
src/core/promise.cxx
@@ -421,10 +421,7 @@ struct mixin_frame {
421
422
constexpr static auto final_suspend() noexcept -> final_awaitable { return {}; }
423
424
- constexpr static void unhandled_exception() noexcept {
425
- // TODO: stash exception in parent
426
- std::terminate();
427
- }
+ constexpr void unhandled_exception(this auto &self) noexcept { stash_current_exception(&self.frame); }
428
};
429
430
// =============== Promise (void) =============== //
0 commit comments