Sunshine master
Self-hosted game stream host for Moonlight.
task_pool_util::TaskPool::timer_task_t< R > Class Template Reference

Queued delayed task identifier paired with its future result. More...

#include <src/task_pool.h>

Collaboration diagram for task_pool_util::TaskPool::timer_task_t< R >:
[legend]

Public Member Functions

 timer_task_t (task_id_t task_id, std::future< R > &future)
 Track a queued timer task and the future for its result.
 

Public Attributes

std::future< R > future
 Future that resolves with the timer task result.
 
task_id_t task_id
 Task ID.
 

Detailed Description

template<class R>
class task_pool_util::TaskPool::timer_task_t< R >

Queued delayed task identifier paired with its future result.

Constructor & Destructor Documentation

◆ timer_task_t()

template<class R >
task_pool_util::TaskPool::timer_task_t< R >::timer_task_t ( task_id_t task_id,
std::future< R > & future )
inline

Track a queued timer task and the future for its result.

Parameters
task_idIdentifier returned when the task was queued.
futureFuture object whose result will be collected later.

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