Safe Haskell | None |
---|---|
Language | Haskell98 |
- data TickInfo = TickInfo {}
- tickLossy :: MonadWidget t m => NominalDiffTime -> UTCTime -> m (Event t TickInfo)
- tickLossyFrom :: MonadWidget t m => NominalDiffTime -> UTCTime -> Event t a -> m (Event t TickInfo)
- clockLossy :: MonadWidget t m => NominalDiffTime -> UTCTime -> m (Dynamic t TickInfo)
- getCurrentTick :: NominalDiffTime -> UTCTime -> IO TickInfo
- delay :: MonadWidget t m => NominalDiffTime -> Event t a -> m (Event t a)
- debounce :: MonadWidget t m => NominalDiffTime -> Event t a -> m (Event t a)
Documentation
TickInfo | |
|
tickLossy :: MonadWidget t m => NominalDiffTime -> UTCTime -> m (Event t TickInfo) Source
Special case of tickLossyFrom that uses the post-build event to start the tick thread.
:: MonadWidget t m | |
=> NominalDiffTime | |
-> UTCTime | |
-> Event t a | Event that starts a tick generation thread. Usually you want this to be something like the result of getPostBuild that only fires once. But there could be uses for starting multiple timer threads. |
-> m (Event t TickInfo) |
Send events over time with the given basis time and interval If the system starts running behind, occurrences will be dropped rather than buffered Each occurrence of the resulting event will contain the index of the current interval, with 0 representing the basis time
clockLossy :: MonadWidget t m => NominalDiffTime -> UTCTime -> m (Dynamic t TickInfo) Source
getCurrentTick :: NominalDiffTime -> UTCTime -> IO TickInfo Source
delay :: MonadWidget t m => NominalDiffTime -> Event t a -> m (Event t a) Source
Delay an Event's occurrences by a given amount in seconds.
debounce :: MonadWidget t m => NominalDiffTime -> Event t a -> m (Event t a) Source
Block occurrences of an Event until the given number of seconds elapses without the Event firing, at which point the last occurrence of the Event will fire.