xan_actor

Macro send_msg

Source
send_msg!() { /* proc-macro */ }
Expand description

Send a message to an actor

§Arguments

  • actor_system - Actor system that the actor belongs to
  • address - Address of the actor
  • message - Message to send

§Example

use xan_actor::send_msg;
send_msg!(
    &mut actor_system,
    "test-actor".to_string(),
    &"test".to_string()
);