Zth (libzth)
Loading...
Searching...
No Matches
coro.h File Reference
#include <libzth/macros.h>
#include <libzth/exception.h>
#include <libzth/sync.h>
#include <coroutine>

Go to the source code of this file.

Classes

struct  zth::coro::promise_awaitable< Promise, Awaitable >
 
class  zth::coro::promise_base
 
class  zth::coro::promise< Promise >
 
struct  zth::coro::task_fiber< Task, Fiber >
 
class  zth::coro::task< T >
 A coroutine task producing a single result value. More...
 
class  zth::coro::task_promise_base< T >
 
class  zth::coro::task_promise< T >
 
class  zth::coro::task_promise< void >
 
class  zth::coro::Mailbox< T >
 
struct  zth::coro::generator_fiber< Generator, Fiber >
 
class  zth::coro::generator< T >
 A coroutine generator producing a sequence of values. More...
 
struct  zth::coro::find_type< Needle, Haystack >
 
class  zth::coro::generator_promise< T >
 
struct  zth::coro::generator_promise< T >::end_type
 
class  zth::coro::generator_promise< T >::iterator< U >
 

Namespaces

namespace  zth
 
namespace  zth::coro
 
namespace  zth::coro::impl
 

Macros

#define ZTH_HAVE_CORO
 

Functions

template<typename Promise , typename Awaitable >
 zth::coro::promise_awaitable (Promise &, Awaitable &&) -> promise_awaitable< Promise, std::decay_t< Awaitable > >
 
template<typename Task , typename Fiber >
 zth::coro::task_fiber (Task &t, Fiber &&f) -> task_fiber< Task, std::decay_t< Fiber > >
 
template<typename Generator , typename Fiber >
 zth::coro::generator_fiber (Generator &g, Fiber &&f) -> generator_fiber< Generator, std::decay_t< Fiber > >
 

Macro Definition Documentation

◆ ZTH_HAVE_CORO

#define ZTH_HAVE_CORO

Definition at line 16 of file coro.h.