NoRedInk/elm-sweet-poll/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

SweetPoll

type alias Config data =
{ url : String
, decoder : Decoder data
, delay : Time
, samesBeforeDelay : Int
, delayMultiplier : Float
, maxDelay : Time
}
defaultConfig : Decoder data -> String -> Config data

Default configuration for SweetPoll

init : Config data -> ( Model data, Effects (Action data) )
update : Action data -> Model data -> ( Model data, Effects (Action data) )
type Action data
= PollSuccess data
| PollFailure Error
type Model data

Private state of the SweetPoll component