|
libcaf
0.15.0
|
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 () | |
| Constructs an invalid response promise. | |
| response_promise (local_actor *self, mailbox_element &src) | |
| response_promise (response_promise &&)=default | |
| response_promise (const response_promise &)=default | |
| response_promise & | operator= (response_promise &&)=default |
| response_promise & | operator= (const response_promise &)=default |
| template<class T , class... Ts> | |
| std::enable_if< (sizeof...(Ts) > 0)||!std::is_convertible< T, error >::value, response_promise >::type | deliver (T &&x, Ts &&...xs) |
| Satisfies the promise by sending a non-error response message. | |
| response_promise | deliver (error x) |
| Satisfies the promise by sending an error response message. More... | |
| bool | async () const |
| Returns whether this response promise replies to an asynchronous message. | |
| bool | pending () const |
| Queries whether this promise is a valid promise that is not satisfied yet. | |
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).
| response_promise caf::response_promise::deliver | ( | error | x | ) |
Satisfies the promise by sending an error response message.
For non-requests, nothing is done.
1.8.9.1