Documentation Home >> Headers >> <jss/actor.hpp> Header >> jss::actor >> jss::actor::self static member function

The self member function allows you to obtain an jss::actor_ref object that refers to the current actor.

jss::actor_ref self();

Returns:

An instance of jss::actor_ref that refers to the actor running the current thread.

Throws:

jss::no_actor if the current thread is not running an actor.

Header

#include <jss/actor.hpp>

See Also