15 wip
This commit is contained in:
@@ -58,7 +58,7 @@ public:
|
||||
~Generator() { if (h_) h_.destroy(); }
|
||||
std::optional<T> operator()()
|
||||
{
|
||||
h_();
|
||||
h_.resume();
|
||||
if (h_.promise().exception_) {
|
||||
std::rethrow_exception(h_.promise().exception_);
|
||||
}
|
||||
|
Reference in New Issue
Block a user