libcaf  0.15.5
Public Types | Public Member Functions | List of all members
caf::mixin::sender< Base, Subtype > Class Template Reference

A sender is an actor that supports self->send(...). More...

#include <sender.hpp>

Inherits Base.

Public Types

using extended_base = sender
 

Public Member Functions

template<class... Ts>
 sender (Ts &&...xs)
 
template<message_priority P = message_priority::normal, class Dest = actor, class... Ts>
void send (const Dest &dest, Ts &&...xs)
 Sends {xs...} as a synchronous message to dest with priority mp. More...
 
template<message_priority P = message_priority::normal, class Source = actor, class Dest = actor, class... Ts>
void anon_send (const Dest &dest, Ts &&...xs)
 
template<message_priority P = message_priority::normal, class Dest = actor, class... Ts>
void delayed_send (const Dest &dest, const duration &rtime, Ts &&...xs)
 
template<message_priority P = message_priority::normal, class Rep = int, class Period = std::ratio<1>, class Dest = actor, class... Ts>
void delayed_send (const Dest &dest, std::chrono::duration< Rep, Period > rtime, Ts &&...xs)
 
template<message_priority P = message_priority::normal, class Source = actor, class Dest = actor, class... Ts>
void delayed_anon_send (const Dest &dest, const duration &rtime, Ts &&...xs)
 
template<message_priority P = message_priority::normal, class Rep = int, class Period = std::ratio<1>, class Source = actor, class Dest = actor, class... Ts>
void delayed_anon_send (const Dest &dest, std::chrono::duration< Rep, Period > rtime, Ts &&...xs)
 

Detailed Description

template<class Base, class Subtype>
class caf::mixin::sender< Base, Subtype >

A sender is an actor that supports self->send(...).

Member Function Documentation

template<class Base , class Subtype >
template<message_priority P = message_priority::normal, class Dest = actor, class... Ts>
void caf::mixin::sender< Base, Subtype >::send ( const Dest &  dest,
Ts &&...  xs 
)

Sends {xs...} as a synchronous message to dest with priority mp.

Warning
The returned handle is actor specific and the response to the sent message cannot be received by another actor.
Exceptions
std::invalid_argumentif dest == invalid_actor

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