grotsev / elm-debouncer / Bounce

Bounce state

The most simple debouncer for Elm.


type Bounce

Event counter counts in-flight events

steady : Bounce -> Basics.Bool

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

State manipulation

init : Bounce

Initial steady state.

push : Bounce -> Bounce

Count new user event.

pop : Bounce -> Bounce

Count delayed event.

Command

delay : Basics.Float -> msg -> Platform.Cmd.Cmd msg

Delay event, time in milliseconds.