Macro stakker::actor_new [−][src]
macro_rules! actor_new { ($core:expr, $type:ty, $notify:expr) => { ... }; }
Create a new actor
This may be used when creation and initialisation of the actor
must be done separately, for example when two actors need to be
initialised with Fwd
instances pointing to each other.
Otherwise see actor!
.
ⓘ
let actor = actor_new!(core, Type, notify); call!([actor], Type::init(arg1, arg2...));
If the logger feature is enabled then an Open log-record
is written for the new actor. If the core
argument is actually
a Cx
then the actor-ID of the actor that the Cx
belongs to
will be recorded as the parent actor.
An ActorOwn
reference is returned. Implemented using
ActorOwn::new
.