Module

FRP.Event.Time

Package
purescript-event
Repository
paf31/purescript-event

#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 b a. (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.