Skip to content

Instantly share code, notes, and snippets.

@Anton3
Created July 25, 2019 19:31
Show Gist options
  • Save Anton3/229a50dcce1e5cef1ddbb8f63e6d230f to your computer and use it in GitHub Desktop.
Save Anton3/229a50dcce1e5cef1ddbb8f63e6d230f to your computer and use it in GitHub Desktop.
Inlining coroutines
task<void> foo() {
co_return uninlineable_mess();
}
task<void> foo() {
co_return bar();
}
task<void> bar() {
co_return uninlineable_mess();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment