Skip to content
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

[5.0.0] Lwt.pick, etc raise Invalid_argument on empty list #562

Merged
merged 3 commits into from
Dec 15, 2019

Conversation

timreinke
Copy link
Contributor

As described in #557, this PR adjusts the behavior of Lwt.pick, Lwt.choose, Lwt.npick, Lwt.nchoose, and Lwt.nchoose_split raise Invalid_argument when passed an invalid list. The test and docs are updated to reflect the new behavior.

@aantron
Copy link
Collaborator

aantron commented Mar 14, 2018

Nice, thank you!

This resolves #557, so I'll close that issue. As described in #557, the PR will have to remain open (for at least three months), but I/others working on Lwt will merge it at the right time :)

Optional: it seems the email address in the commit metadata is not one of the ones associated with your GitHub account, so that's why GitHub is unable to link the commits to your user. Perhaps you're already aware of this, but if not, you may want to amend these commits to change the email address, or resolve this otherwise.

cc @hcarty

@hcarty
Copy link
Contributor

hcarty commented Mar 14, 2018

Thank you @timreinke!

@aantron aantron changed the title Lwt.pick, etc raise Invalid_argument on empty list [5.0.0] Lwt.pick, etc raise Invalid_argument on empty list Mar 14, 2018
@timreinke
Copy link
Contributor Author

You're very welcome, thanks for letting me take a crack at it.

Thanks for pointing out the email issue @aantron - whoops. I went ahead and fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants