
13 Feb
2011
13 Feb
'11
7:52 a.m.
On , Ryan Ingram
Hi Sam. I don't know much about the performance problems you are seeing, but I think your solution is more cleanly implemented just under the event level with futures.
I think the reactive function you want has a type like this:
stateMachine :: s -> (a -> s -> s) -> (s -> Future (b, s)) -> Event a -> Event b
Hi Ryan. I will have to study futures, and your code, for a while before I can give an intelligent response, but I really appreciate the suggestion. I will have a look at futures next. Many thanks, Sam