shouldn't the check pin example end with 'exit' rather than 'ready'?
.{ Atm.checkPin, Atm.session, Atm.ready } } }),
It was the diagram that made me think this.shouldn't the check pin example end with 'exit' rather than 'ready'?
.{ Atm.checkPin, Atm.session, Atm.ready } } }),
It was the diagram that made me think this.
Haha, this is just a demo, written casually, you can change this to exit, and then as you expected, the program will exit directly.
Try modifying it yourself, you will fall in love with this way of programming.