Created
November 30, 2021 09:07
-
-
Save HappyCerberus/a49908852b5c9fcaaec661b9e3663420 to your computer and use it in GitHub Desktop.
[Article] C++20 Practical Coroutines - using main task
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
ces::main_task async_main(int argc, char *argv[]) { | |
std::cout << "Arguments: \n"; | |
for (int i = 0; i < argc; i++) { | |
std::cout << "\t" << argv[i] << "\n"; | |
} | |
co_return 0; | |
} | |
int main(int argc, char *argv[]) { return async_main(argc, argv); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment