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(statemachine): add Has method #15

Merged
merged 1 commit into from
Jul 10, 2020
Merged

feat(statemachine): add Has method #15

merged 1 commit into from
Jul 10, 2020

Conversation

hannahhoward
Copy link
Contributor

Goals

Since Send automatically creates a new zero value statemachine, in the case where you don't want to actually initiatialize a statemachine unless it already exists, you have to call Get, which is a potentially more expensive operation.

Implementation

Just add a has method -- pipe to statestore has

add Has method to fsm group -- just pipes to statestore.Has
@hannahhoward hannahhoward requested a review from ingar July 3, 2020 17:18
@hannahhoward hannahhoward merged commit 7ac2dd5 into master Jul 10, 2020
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