C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::anon_scheduled_mail_t< Priority, Args > Class Template Reference

Provides a fluent interface for sending anonymous messages to actors at a specific point in time. More...

#include <anon_mail.hpp>

Public Member Functions

 anon_scheduled_mail_t (message &&content, actor_clock::time_point timeout)
 
 anon_scheduled_mail_t (const anon_scheduled_mail_t &)=delete
 
anon_scheduled_mail_toperator= (const anon_scheduled_mail_t &)=delete
 
template<class Handle , class RefTag = strong_ref_t>
disposable send (const Handle &receiver, RefTag ref_tag={}) &&
 Sends the message to receiver.
 

Detailed Description

template<message_priority Priority, class... Args>
class caf::anon_scheduled_mail_t< Priority, Args >

Provides a fluent interface for sending anonymous messages to actors at a specific point in time.

Member Function Documentation

◆ send()

template<message_priority Priority, class... Args>
template<class Handle , class RefTag = strong_ref_t>
disposable caf::anon_scheduled_mail_t< Priority, Args >::send ( const Handle & receiver,
RefTag ref_tag = {} ) &&

Sends the message to receiver.

Parameters
receiverThe actor that should receive the message.
ref_tagEither 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.

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