Where in 0.17 you had Task.perform f g, you can replace that in 0.18 by simply Task.attempt (unpack f g), where unpack is from http://package.elm-lang.org/packages/elm-community/result-extra/2.0.1.
2016-11-16 14:05 GMT+01:00 Tim Bezhashvyly <[email protected]>: > Sorry again if something obvious but Im not sure how now to make async > requests in 0.18.0. > > In 0.17.1 it was done with Task.perform where first parameter was a > success Msg, second - fail Msg and third is the task which execution result > is then passed to first function. > > As far as I understand now Task.attempt must be used but documentation is > not quite comprehensive. Could someone please advise? > > -- > 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.
