Provides a fluent interface for sending asynchronous messages to actors at a specific point in time.
More...
|
|
| async_scheduled_mail_t (local_actor *self, message &&content, actor_clock::time_point timeout) |
| |
|
| async_scheduled_mail_t (const async_scheduled_mail_t &)=delete |
| |
|
async_scheduled_mail_t & | operator= (const async_scheduled_mail_t &)=delete |
| |
| template<class Handle , class RefTag = strong_ref_t, class SelfRefTag = strong_self_ref_t> |
| disposable | send (const Handle &receiver, RefTag ref_tag={}, SelfRefTag self_ref_tag={}) && |
| | Sends the message to receiver.
|
| |
| template<class Handle , class RefTag = strong_ref_t, class SelfRefTag = strong_self_ref_t> |
| auto | delegate (const Handle &receiver, RefTag ref_tag={}, SelfRefTag self_ref_tag={}) && |
| | Sends the message to receiver, using the message ID and sender from the currently processed message.
|
| |
template<message_priority Priority, class Trait, class... Args>
class caf::async_scheduled_mail_t< Priority, Trait, Args >
Provides a fluent interface for sending asynchronous messages to actors at a specific point in time.
template<message_priority Priority, class Trait , class... Args>
template<class Handle , class RefTag = strong_ref_t, class SelfRefTag = strong_self_ref_t>
| auto caf::async_scheduled_mail_t< Priority, Trait, Args >::delegate |
( |
const Handle & | receiver, |
|
|
RefTag | ref_tag = {}, |
|
|
SelfRefTag | self_ref_tag = {} ) && |
|
nodiscard |
Sends the message to receiver, using the message ID and sender from the currently processed message.
Transfers the responsibility for responding to a request to receiver.
- Parameters
-
| receiver | The actor that should receive the message. |
| ref_tag | Either strong_ref or weak_ref. When passing strong_ref, the system will keep a strong reference to the receiver until the message has been delivered. Otherwise, the system will only keep a weak reference to the receiver and the message will be dropped if the receiver has been garbage collected in the meantime. |
| self_ref_tag | Either strong_self_ref or weak_self_ref. When passing strong_self_ref, the system will keep a strong reference to the sender until the message has been delivered. Otherwise, the system will only keep a weak reference to the sender and the message will be dropped if the sender has been garbage collected in the meantime. |
template<message_priority Priority, class Trait , class... Args>
template<class Handle , class RefTag = strong_ref_t, class SelfRefTag = strong_self_ref_t>
Sends the message to receiver.
- Parameters
-
| receiver | The actor that should receive the message. |
| ref_tag | Either strong_ref or weak_ref. When passing strong_ref, the system will keep a strong reference to the receiver until the message has been delivered. Otherwise, the system will only keep a weak reference to the receiver and the message will be dropped if the receiver has been garbage collected in the meantime. |
| self_ref_tag | Either strong_self_ref or weak_self_ref. When passing strong_self_ref, the system will keep a strong reference to the sender until the message has been delivered. Otherwise, the system will only keep a weak reference to the sender and the message will be dropped if the sender has been garbage collected in the meantime. |