qmuntal / stateless

Go library for creating finite state machines
https://wikipedia.org/wiki/Finite-state_machine
BSD 2-Clause "Simplified" License
974 stars 53 forks source link

fix concurrent issue #66

Closed liang-kang closed 1 year ago

liang-kang commented 1 year ago

sm.Firing may return false between the iteratoration of sm.internalFireOne

qmuntal commented 1 year ago

Thanks for reporting this issue @liang-kang. While reviewing your PR I've noticed other concurrency issues. I've submitted #68, which hopefully fixes them all. I've added you as co-author.