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

Trivial policy for handling a single result in a response_handler. More...

#include <single_response.hpp>

Public Types

using response_type = ResponseType
 
template<class Fun >
using type_checker = detail::type_checker<response_type, Fun>
 

Public Member Functions

 single_response (message_id mid, disposable pending_timeout) noexcept
 
 single_response (single_response &&) noexcept=default
 
single_responseoperator= (single_response &&) noexcept=default
 
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 OnError >
void receive (Self *self, F &&f, OnError &&g)
 
message_id id () const noexcept
 
disposable pending_timeouts ()
 

Static Public Attributes

static constexpr bool is_trivial = true
 

Detailed Description

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

Trivial policy for handling a single result in a response_handler.


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