On Tuesday, November 8, 2016 at 4:22:08 PM UTC, Rupert Smith wrote: > > subscriptions : Model -> Sub Msg > subscriptions model = > if afterCloseToExpiryTime then > Time.every Time.second RefreshTokenMsg > else > Sub.none >
I'm also struggling to get my head around how to implement 'afterCloseToExpiry'. Since Time.now is a Task, and to execute that task I need to supply taggers to Msg, and the result will be given back to me through a Cmd, which I guess I then run to get a Msg to my update function, which then records what the current time is in the model - but because the model was updated, the subscriptions will be re-evaluated. Obviously, I'm not quite getting something... Is there some simpler way of getting the current time? -- 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.
