Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
millisecond :: Time Source #
every :: Time -> Signal Time Source #
Creates a signal which yields the current time (according to now
) every
|given number of milliseconds.
Returns the number of milliseconds since an arbitrary, but constant, time |in the past.
delay :: Time -> Signal a -> Signal a Source #
Takes a signal and delays its yielded values by a given number of |milliseconds.
debounce :: Time -> Signal a -> Signal a Source #
Takes a signal and a time value, and creates a signal which waits to yield |the next result until the specified amount of time has elapsed. It then |yields only the newest value from that period. New events during the debounce |period reset the delay.