Vadym Chekan
2017-11-21 20:14:55 UTC
Hi all,
My app needs to get data from 2 sources upon initialization. Those two data
sources are independent and can be queried in parallel. How do I do it?
I tried to use RemoteData.map2, but it consumes RemoteData structures and I
do not know how to produce it because sendQuery produces command and most
of the functions produce commands and not RemoteData.
I perhaps can do it with Task and Process, but it seems too low-level for
such a trivial problem.
Could somebody help me to connect the dots please?
Vadym.
My app needs to get data from 2 sources upon initialization. Those two data
sources are independent and can be queried in parallel. How do I do it?
I tried to use RemoteData.map2, but it consumes RemoteData structures and I
do not know how to produce it because sendQuery produces command and most
of the functions produce commands and not RemoteData.
I perhaps can do it with Task and Process, but it seems too low-level for
such a trivial problem.
Could somebody help me to connect the dots please?
Vadym.
--
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+***@googlegroups.com.
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 elm-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.