mp-coro main
Coroutine support tools
Namespaces | Functions
sync_await.h File Reference
#include <mp-coro/bits/synchronized_task.h>
#include <mp-coro/concepts.h>
#include <mp-coro/trace.h>
#include <semaphore>
+ Include dependency graph for sync_await.h:

Go to the source code of this file.

Namespaces

namespace  mp_coro
 

Functions

template<awaitable A>
decltype(auto) sync_await (A &&awaitable)
 Creates a synchronized task from the awaitable, starts it, and waits for it to complete, returning the result. More...