View Source Actors (spawn v1.0.0-rc.19)
Actors
It's the client API for the Spawn actors.
Through this module we interact with the actors by creating,
invoking or configuring them.
Summary
Functions
Makes a request to an actor.
Makes a request to an actor using Nats broker.
Registers all actors defined in HostActor.
Spawn actors defined in HostActor.
Functions
Makes a request to an actor.
request
- The InvocationRequestopts
- The options to Invoke Actors ##
Makes a request to an actor using Nats broker.
request
- The InvocationRequestopts
- The options to Invoke Actors ##
@spec register(Eigr.Functions.Protocol.RegistrationRequest.t(), any()) :: {:ok, Eigr.Functions.Protocol.RegistrationResponse.t()} | {:error, Eigr.Functions.Protocol.RegistrationResponse.t()}
Registers all actors defined in HostActor.
registration
- The RegistrationRequestopts
- The options to create Actors ##
@spec spawn_actor(Eigr.Functions.Protocol.SpawnRequest.t(), any()) :: {:ok, Eigr.Functions.Protocol.SpawnResponse.t()}
Spawn actors defined in HostActor.
registration
- The SpawnRequestopts
- The options to create Actors
spawn_actor must be used when you want to create a concrete instance of an actor previously registered as unamed. That is, when an Actorid is associated with an actor of unamed type. This function only registers the metadata of the new actor, not activating it. This will occur when the sprite is first invoked. ##