libcaf
0.13.2
|
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_promise & | operator= (response_promise &&)=default |
response_promise & | operator= (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. | |
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).
|
explicit |
Queries whether this promise is still valid, i.e., no response was yet delivered to the client.