Tasks and Cmds are just data that described an asynchronous action that will be executed outside of your program. As far as I know, Tasks and Cmds will not run in the repl. So you won't be able to see the result of Date.now in the repl.
On Sun, May 15, 2016 at 6:56 PM, David Acevedo <[email protected]> wrote: > Thanks Max, That clarifies some things. I got the Msg part I wasn't > getting, it's a type. > > I'm still missing how it connects to *init* or *update*. I'm using it on > the repl and got a Platform.Cmd.Cmd Repl.Msg but can't see the date or peer > into the "value" of the record (if it is a record, I'm not sure what I'm > looking at). > > > -- > 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. > -- 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.
