C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::policy::select_any< ResponseType > Class Template Reference

Enables a response_handle to pick the first arriving response, ignoring all other results. More...

#include <select_any.hpp>

Public Types

using response_type = ResponseType
 
using message_id_list = std::vector<message_id>
 
template<class Fun >
using type_checker = detail::type_checker<response_type, std::decay_t<Fun>>
 

Public Member Functions

 select_any (message_id_list ids, disposable pending_timeouts)
 
template<class Self , class F , class OnError >
void await (Self *self, F &&f, OnError &&g)
 
template<class Self , class F , class OnError >
void then (Self *self, F &&f, OnError &&g)
 
template<class Self , class F , class G >
void receive (Self *self, F &&f, G &&g)
 
const message_id_list & ids () const noexcept
 
disposable pending_timeouts ()
 

Static Public Attributes

static constexpr bool is_trivial = false
 

Detailed Description

template<class ResponseType>
class caf::policy::select_any< ResponseType >

Enables a response_handle to pick the first arriving response, ignoring all other results.


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