tin  1.5.9
tsm::runtime::task_spawner< Executor > Class Template Reference

#include <executor.h>

Collaboration diagram for tsm::runtime::task_spawner< Executor >:
Collaboration graph

Public Member Functions

constexpr task_spawner (Executor &executor)
 
template<auto Entry, typename... Args>
spawn_result spawn (Args &&... args)
 

Detailed Description

template<typename Executor>
class tsm::runtime::task_spawner< Executor >

Non-owning handle for starting dynamic coroutine tasks.

The executor remains the scheduler. A spawner only exposes manual task creation so application code can pass that capability without also passing the whole executor control surface.

Constructor & Destructor Documentation

◆ task_spawner()

template<typename Executor >
constexpr tsm::runtime::task_spawner< Executor >::task_spawner ( Executor &  executor)
inlineexplicitconstexpr

Member Function Documentation

◆ spawn()

template<typename Executor >
template<auto Entry, typename... Args>
spawn_result tsm::runtime::task_spawner< Executor >::spawn ( Args &&...  args)
inline

The documentation for this class was generated from the following file: