libcaf  0.13.2
Public Member Functions | List of all members
caf::response_promise Class Reference

A response promise can be used to deliver a uniquely identifiable response message from the server (i.e. More...

#include <response_promise.hpp>

Public Member Functions

 response_promise (response_promise &&)=default
 
 response_promise (const response_promise &)=default
 
response_promiseoperator= (response_promise &&)=default
 
response_promiseoperator= (const response_promise &)=default
 
 response_promise (const actor_addr &from, const actor_addr &to, const message_id &response_id)
 
 operator bool () const
 Queries whether this promise is still valid, i.e., no response was yet delivered to the client. More...
 
void deliver (message response_message) const
 Sends response_message and invalidates this handle afterwards.
 

Detailed Description

A response promise can be used to deliver a uniquely identifiable response message from the server (i.e.

receiver of the request) to the client (i.e. the sender of the request).

Member Function Documentation

caf::response_promise::operator bool ( ) const
explicit

Queries whether this promise is still valid, i.e., no response was yet delivered to the client.


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