-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: Parellelize 2 Or more Tasks And Emit One Single Msg #1098
Labels
Comments
Thanks for reporting this! To set expectations:
Finally, please be patient with the core team. They are trying their best with limited resources. |
Thanks for reporting this! To set expectations:
Finally, please be patient with the core team. They are trying their best with limited resources. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a feature request.
See here for context: https://old.reddit.com/r/elm/comments/91t937/is_it_possible_to_make_multiple_http_requests_in/
Imagine I have 2 http requests:
getDogs : Cmd DogList
getCats : Cmd CatList
I would like to run these two in parallel and emit one single message,
GotAnimals (DogList, CatList)
.Having to handle each msg individually in the update function leads to avoidable complexity.
Edit: There's even a package for this (https://package.elm-lang.org/packages/0ui/elm-task-parallel/latest/), but I think it's a common enough need that it should be baked into the language.
The text was updated successfully, but these errors were encountered: