MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / SyncAwait

Function SyncAwait

tests/EduCoroutineWithLambdaTest.cpp:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41template<typename _AwrT>
42void SyncAwait(_AwrT&& a)
43{
44 // XXX: In the primary template Clang says there is no capture for this lambda.
45 auto asyncLambda = [&]() -> generator { co_await a; };
46
47 asyncLambda();
48}
49
50void f()
51{

Callers 1

fFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected