Created
January 20, 2020 15:19
-
-
Save tux3/d996d6ac51025461f20634ee963522c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <tconcurrent/coroutine.hpp> | |
#include <fmt/core.h> | |
tc::cotask<int> bad_coroutine() | |
{ | |
throw fmt::format("Yeet."); | |
} | |
int main() | |
{ | |
try { | |
tc::async_resumable(bad_coroutine).get(); | |
} catch (const std::string& x) { | |
return 1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment