Hi Nandiin,
It is not clear for me what are you actually trying to accomplish here.
I understand that you want the synchronization but it is not clear what
would a satisfying solution would be.
I somehow think you might want side-effects where by side-effects I mean
have a piece of state (the sha
This is exactly what it is.
It takes a value and a list and returns a tuple with the value and the
command resulted from batching that list.
I used to have a similar function back in 0.16 days
noFx model = (model, Effects.none)
and I would have used it like
SomeAction ->
noFx {model |...}
>
> Elm doesn't have "no side effects", it has managed side effects. But if
> there's no Task or Cmd or Sub in the type, you can be sure that the
> function is side-effect free. This way, when there's problems with
> side-effects, it's easy to track down which functions are causing them,
> sin
*nonverbal frustration* ... isn't that what I said?
it might return (model, Cmd 1) or (model,Cmd 2)
It always makes the same command, but the command might do different
things.
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe
Thank you Aaron you just saved me hours of trying to make it work.
--
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
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
wrote:
> T
Many thanks for the clarification -- the concept is much clearer to me now.
--
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.c