Skip to content

Difference between ActorRefFrom and ActorLogicFrom type in V5 #4571

Answered by davidkpiano
bhvngt asked this question in General
Discussion options

You must be logged in to vote

Sure, we will add documentation for that.

In short:

const actorRef = createActor(actorLogic);

The ActorRef is the live actor instance that you can send events to. The ActorLogic represents the logic of an actor.

E.g. a traffic light actor may have trafficLightMachine behavior that tells it how to transition between its red, yellow, green states, but there may be many live actor instances (actor refs) of that trafficLightMachine behavior.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bhvngt
Comment options

Answer selected by bhvngt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants