pavlos / gen_fsm

Elixir wrapper around OTP's gen_fsm
Other
40 stars 3 forks source link

Create examples folder #11

Closed gausby closed 8 years ago

gausby commented 8 years ago

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.

pavlos commented 8 years ago

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?

gausby commented 8 years ago

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.

pavlos commented 8 years ago

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

gausby commented 8 years ago

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