looplab / fsm

Finite State Machine for Go
Apache License 2.0
2.86k stars 312 forks source link

Fixed data race between Can() and Event() #107

Closed denisvaloha closed 3 months ago

denisvaloha commented 5 months ago

Fixes data race between Can() and Event() https://github.com/looplab/fsm/issues/105

Test: go test -v -race -run TestEventAndCanInGoroutines