Module

FRP.Event.Time

Package
purescript-behaviors
Repository
paf31/purescript-behaviors

#interval Source

interval :: Int -> Event Int

Create an event which fires every specified number of milliseconds.

#animationFrame Source

animationFrame :: Event Unit

Create an event which fires every frame (using requestAnimationFrame).

#withTime Source

withTime :: forall a. Event a -> Event { time :: Number, value :: a }

Create an event which reports the current time in milliseconds since the epoch.