To prevent having to wait for the first time tick after initialization you 
can also add it as a command to your init function.

init : ( Model, Cmd Msg )
init =
    ( { cards = ...
      , startTime = 0
      , currentTime = 0
      }
    , Time.now |> Task.perform (always (StartTick 0)) StartTick
    )


And of course handle the StartTick event in your update function.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to