Condy v1.1.0
C++ Asynchronous System Call Layer for Linux
Loading...
Searching...
No Matches
sync_wait.hpp File Reference

Helper functions for running a Runtime. More...

#include "condy/coro.hpp"
#include "condy/runtime.hpp"
#include "condy/task.hpp"

Go to the source code of this file.

Namespaces

namespace  condy
 The main namespace for the Condy library.

Functions

template<typename T, typename Allocator>
condy::sync_wait (Runtime &runtime, Coro< T, Allocator > coro)
 Synchronously wait for a coroutine to complete in the given runtime.
RuntimeOptionscondy::default_runtime_options ()
 Get the default runtime options. This options will be used when using sync_wait without specifying runtime.
template<typename T, typename Allocator>
condy::sync_wait (Coro< T, Allocator > coro)
 Synchronously wait for a coroutine to complete using a default runtime. The runtime will be created and destroyed for each call.

Detailed Description

Helper functions for running a Runtime.