Module
Effect.Timer
- Package
- purescript-js-timers
- Repository
- purescript-contrib/purescript-js-timers
#clearTimeout Source
clearTimeout :: TimeoutId -> Effect UnitCancels a timeout. If the timeout has already been cancelled or has already elapsed this will have no effect.
#setInterval Source
setInterval :: Int -> Effect Unit -> Effect IntervalIdRuns an effectful function after on a set interval with the specified delay
in milliseconds between iterations. The returned IntervalId can be used
to cancel the timer and prevent the interval from running any further.
The interval delay value is capped at 4ms by the JS API, any value less than this will be clamped.
#clearInterval Source
clearInterval :: IntervalId -> Effect UnitCancels an interval timer. If the interval has already been cancelled this will have no effect.
- Modules
- Effect.
Timer