Container System 0.1.0
High-performance C++20 type-safe container framework with SIMD-accelerated serialization
Loading...
Searching...
No Matches
kcenon::container::async::detail Namespace Reference

Classes

struct  async_awaitable
 Awaitable that runs work in a separate thread. More...
 
struct  async_state
 Shared state for async operations. More...
 
struct  executor_awaitable
 Awaitable that runs work using an executor or fallback thread. More...
 
struct  executor_state
 Shared state for executor-based async operations. More...
 
struct  generator_promise
 Promise type for generator. More...
 
struct  promise_base
 Base promise type with common functionality. More...
 
struct  promise_type
 Promise type for value-returning tasks. More...
 
struct  promise_type< void >
 Promise type for void-returning tasks. More...
 

Functions

template<typename F >
auto make_async_awaitable (F &&func) -> async_awaitable< std::invoke_result_t< F > >
 
template<typename F >
auto make_executor_awaitable (F &&func, executor_ptr executor) -> executor_awaitable< std::invoke_result_t< F > >
 Helper to create executor awaitable.
 

Function Documentation

◆ make_async_awaitable()

◆ make_executor_awaitable()

template<typename F >
auto kcenon::container::async::detail::make_executor_awaitable ( F && func,
executor_ptr executor ) -> executor_awaitable<std::invoke_result_t<F>>

Helper to create executor awaitable.

Definition at line 195 of file thread_pool_executor.h.

197 {
198 using result_type = std::invoke_result_t<F>;
200 std::forward<F>(func), std::move(executor));
201 }
Awaitable that runs work using an executor or fallback thread.