Module

FRP.Event.Time

Package
purescript-hyrule
Repository
mikesol/purescript-hyrule

#interval Source

interval :: Int -> Event Instant

Create an event which fires every specified number of milliseconds.

#withTime Source

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

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

#debounce Source

debounce :: forall a. Milliseconds -> Event a -> Event a

On each event, ignore subsequent events for a given number of milliseconds.

#debounceWith Source

debounceWith :: forall a b. (Event a -> Event { period :: Milliseconds, value :: b }) -> Event a -> Event b

Provided an input event and transformation, block the input event for the duration of the specified period on each output.