COROIO: NNet::NActors::TPoison Struct Reference
COROIO
 
Loading...
Searching...
No Matches
NNet::NActors::TPoison Struct Reference

System message that terminates the receiving actor. More...

#include <actorsystem.hpp>

Static Public Attributes

static constexpr TMessageId MessageId = static_cast<TMessageId>(ESystemMessages::PoisonPill)
 

Detailed Description

System message that terminates the receiving actor.

Sending TPoison to any actor removes it from the system. Its destructor is called on the next GC cycle. The actor slot is then recycled with a bumped cookie so stale messages cannot reach its successor.

ctx->Send<TPoison>(actorToKill);
System message that terminates the receiving actor.
Definition actorsystem.hpp:35

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