sclasen / swfsm

[golang] simple workflow finite state machines
MIT License
53 stars 14 forks source link

Increase cancel buffer to two messages as heartbeat and signal could … #179

Closed ryanwalls closed 8 years ago

ryanwalls commented 8 years ago

…both error

Potentially a race condition could occur where both heartbeat and signal error and try to send a message on the same cancel channel. So I think the buffer needs to be 2.

sclasen commented 8 years ago

thanks!