On Tuesday, November 8, 2016 at 5:28:26 PM UTC, Witold Szczerba wrote:
>
> You could propably "tick" (as in example from docs) every few seconds and 
> return Cmd.none if you're before expiration, and some other Cmd otherwise. 
> Does it make sense?
>

I could, but there is still the inconvenience of having to make a request 
to get Time.now and receive the result back as a Msg to the update 
function. So it would be tick -> get now -> compare now to expiry time -> 
invoke refresh.

Also at the moment I am logging all events to my update functions, it would 
be kind of annoying to have a tick event every few seconds, when it should 
not really be necessary. But thanks for the suggestion. 

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to