reactive-banana time delays

前端 未结 2 912
误落风尘
误落风尘 2021-02-08 17:59

I have scoured the documentation of reactive-banana, and I can\'t find a way to specify explicit time delays. Say, for example, I would like to take an Event t a a

2条回答
  •  余生分开走
    2021-02-08 18:08

    As Ben indicates, this is correct: reactive-banana is no built-in notion of time and delays.

    The main reason is that it is hard to guarantee that logical time and real time agree. What happens when a mouse click happens in real time before the logical time of an event which could not yet be calculated, i.e. whose real time dallies behind its logical time?

    However, it is still possible to deal with time by using external timer events. Have a look at the Wave.hs example.

提交回复
热议问题