Closed mastoj closed 8 years ago
I would be interesting if we could give it a try.
Did you take a look at how others libraries are doing the Event parts ?
didn't find an easy part that shows how they do it, but didn't look that much either to be honest :)
Solved by #42
The mailboxprocessor is nice, but performance wise I think we could do much better with events. My thoughts are roughly this:
Here we create a element that will hold the state for things in the application, basically the same thing we use when we do the recursive call. We create a helper function for posting messages to that will be used to post messages on the element we created. That we just attach a event listener to the element and celebrates victory.