reactimate package:reactive-banana

Output. Execute the IO action whenever the event occurs. Note: If two events occur very close to each other, there is no guarantee that the reactimates for one event will have finished before the ones for the next event start executing. This does not affect the values of events and behaviors, it only means that the reactimate for different events may interleave. Fortunately, this is a very rare occurrence, and only happens if
  • you call an event handler from inside reactimate,
  • or you use concurrency.
In these cases, the reactimates follow the control flow of your event-based framework. Note: An event network essentially behaves like a single, huge callback function. The IO action are not run in a separate thread. The callback function will throw an exception if one of your IO actions does so as well. Your event-based framework will have to handle this situation.
Output. Execute the IO action whenever the event occurs. This version of reactimate can deal with values obtained from the changes function.