Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Actor vs. State Machine Mode #2

Open
hirschenberger opened this issue Feb 3, 2025 · 0 comments
Open

Question: Actor vs. State Machine Mode #2

hirschenberger opened this issue Feb 3, 2025 · 0 comments

Comments

@hirschenberger
Copy link

Hey,

I have a general design question: As I understand it, there's two "modes" in crb, it can either be in actor or state-machine mode. When in state-machine mode, no messages are processed before crb enters actor-mode, right? The actor-mode can be also be seen as a state.

So while doing some work in a state, crb can't react on any message, until the state is finished and transitions to actor-mode.

Isn't it error prone to make the user "poll" for new messages by manually going to actor mode and break the state-machine transitioning sequence? What if the user forgets to go to actor mode to wait for an event and transitions to another state, the whole crb will be stuck, or?

In general, where's the usecase for transitioning between states without any external events other than encapsulation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant