pavlos / gen_fsm

Elixir wrapper around OTP's gen_fsm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create examples folder

gausby opened this issue · comments

We could add an examples folder to the project where we could store examples of state machines. I think the turnstile example, and the coffee vendor machine example could fit in there nicely.

Good call. I also have an example of an infinite-looping "worker" FSM that responds to interrupts. I think we should put the examples as test cases maybe? Or should we just put them up at the top level?

The test cases should be very specific and test one thing. Sounds like the interruptible worker should go in the example folder with comments as annotations.

Cool. Should I have mix exclude the examples when building hex packages so they don't bloat the release?

I would say so. No need to have them published to hex.pm