Nick: Changing the code as you suggested does not fix it. There is a race condition that is going on at some level below, either on the Elm runtime or the browser code.
Please try it, and you see that even with your suggestion, the program will become unresponsive after clicking a dozen times or so. This looks serious. On Thursday, May 26, 2016 at 9:57:46 AM UTC-5, Fernando Alegre wrote: > > I may have found a possible race condition in Elm. It is illustrated here: > <script src=" > https://gist.github.com/alphalambda/448099e95858b0ffc91fd41fdb1b437a.js > "></script> > > If you click several times on the Pause/Resume button, it becomes > unresponsive after a while. > > I am using Google Chrome, so it may be a race condition in Chrome's event > handler. I am not sure. Any hints? > > Thanks > > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
