qb
2.0.0.0
C++17 Actor Framework
|
Helper class for building and sending events to actors. More...
#include <Actor.h>
Public Member Functions | |
EventBuilder (EventBuilder const &rhs) noexcept=default | |
template<typename _Event, typename... _Args> | |
EventBuilder & | push (_Args &&...args) noexcept |
Send a new event to the target actor. |
Helper class for building and sending events to actors.
This class simplifies the process of sending multiple events to a target actor. It provides a fluent interface for chaining event sends, ensuring that events are delivered in the order they are pushed.
|
noexcept |
Send a new event to the target actor.
Creates and sends an event of the specified type to the target actor. The event is constructed with the provided arguments and will be delivered in the order it was pushed.
Example:
_Event | The type of event to create and send |
Args | Types of arguments to forward to the event constructor |
args | Arguments to forward to the event constructor |