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

Interfaces for coroutine task management. More...

#include "condy/context.hpp"
#include "condy/coro.hpp"
#include "condy/invoker.hpp"
#include "condy/runtime.hpp"
#include <coroutine>
#include <exception>
#include <future>
#include <utility>

Go to the source code of this file.

Classes

class  condy::Task< T, Allocator >
 Coroutine task that runs concurrently in the runtime. More...

Namespaces

namespace  condy
 The main namespace for the Condy library.

Functions

template<typename T, typename Allocator>
Task< T, Allocator > condy::co_spawn (Runtime &runtime, Coro< T, Allocator > coro)
 Spawn a coroutine as a task in the given runtime.
template<typename T, typename Allocator>
Task< T, Allocator > condy::co_spawn (Coro< T, Allocator > coro)
 Spawn a coroutine as a task in the current runtime.
detail::SwitchAwaiter condy::co_switch (Runtime &runtime)
 Switch current coroutine task to the given runtime.

Detailed Description

Interfaces for coroutine task management.

This file defines interfaces for running and managing concurrent coroutine tasks in Condy.

Definition in file task.hpp.