C++ Actor Framework 0.18
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | List of all members
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: