keid-frp-banana-0.1.1.0: Reactive Banana integration for Keid engine.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Engine.ReactiveBanana.Timer

Synopsis
  • every :: MonadUnliftIO m => Int -> ResourceT m (MomentIO (Event Double))

Documentation

every Source #

Arguments

:: MonadUnliftIO m 
=> Int

Timer interval in microseconds (for threadDelay)

-> ResourceT m (MomentIO (Event Double)) 

An async process that will run forever and fire monotonic timestamp events.

Events would be processed serially on the timer thread and delays would be adjusted to keep up.

Events for the intervals "missed" would fire right away.