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

feat(machine): add state def manipulations (eg StateAdd) #115

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

pancsta
Copy link
Owner

@pancsta pancsta commented Sep 11, 2024

To allow state definitions to be re-used, new modification methods are available for both state lists and state structures.

// Add a dependency on Connected to HandshakeDone.
HandshakeDone: am.StateAdd(ss.States[ss.HandshakeDone], am.State{
	Require: S{Connected},
}),

@pancsta pancsta merged commit c9f1639 into main Sep 11, 2024
@pancsta pancsta deleted the feat/structmerge-stateadd branch September 14, 2024 12:59
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

Successfully merging this pull request may close these issues.

1 participant