grotsev/elm-debouncer/1.0.0

Bounce

Bounce state

The most simple debouncer for Elm.

type Bounce

Event counter counts in-flight events

steady : Bounce -> Bool

State is steady, i.e. there is no in-flight events.

State manipulation

Initial steady state.

Count new user event.

Count delayed event.

Command

delay : Float -> msg -> Cmd msg

Delay event, time in milliseconds.