Skip to content

Conversation

@haakon-e
Copy link
Contributor

small addition to asyncmap docstring to clarify that order of output is same as input:

The output is guaranteed to be the same order as the elements of the collection(s) c.

I added it to clarify the behavior, especially for new users, and, afaik because it is not consistent across programming languages.

Happy to iterate if there should be updates to doc pages too.

@Seelengrab
Copy link
Contributor

Should this actually be guaranteed, or is this a case of "that's what it happens to do right now"?

@haakon-e
Copy link
Contributor Author

Should this actually be guaranteed, or is this a case of "that's what it happens to do right now"?

I will have to defer a definitive answer to that question for someone else. I'm basing my PR on the answer to a question I had about this in the julia slack. In any case, clarification either way for what I should expect (or not expect) would be useful to have in the docs.

@ericphanson
Copy link
Contributor

It should be semantically guaranteed since it is supposed to be like map (and this order is a big reason this function is useful)

@nsajko nsajko added the docs This change adds or pertains to documentation label Jul 7, 2024
@LilithHafner LilithHafner merged commit 2e1235e into JuliaLang:master Aug 10, 2024
@LilithHafner
Copy link
Member

Thanks!

@haakon-e haakon-e deleted the patch-1 branch August 14, 2024 17:48
lazarusA pushed a commit to lazarusA/julia that referenced this pull request Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs This change adds or pertains to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants