Skip to content

Adds try_for_each combinator #269

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

Merged
merged 3 commits into from
Oct 2, 2019
Merged

Adds try_for_each combinator #269

merged 3 commits into from
Oct 2, 2019

Conversation

montekki
Copy link
Member

@montekki montekki commented Oct 1, 2019

This should probably be hidden behind the unstable feature.


Ref: #129
Stdlib: https://doc.rust-lang.org/beta/std/iter/trait.Iterator.html#method.try_for_each

src/lib.rs Outdated
@@ -47,6 +47,7 @@
#![doc(test(attr(allow(unused_extern_crates, unused_variables))))]
#![doc(html_logo_url = "https://async.rs/images/logo--hero.svg")]
#![recursion_limit = "1024"]
#![feature(try_trait)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depending on a nightly feature may be tricky for us because it means we wont' be able to run on stable for the 1.39 release. I'm thinking it may perhaps be better to scope try_for_each to Result for now, and mention this as a limitation to the lang team.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, but how does std work then? (i haven't had a moment to look closely atm)

@yoshuawuyts
Copy link
Contributor

bors r+

bors bot added a commit that referenced this pull request Oct 2, 2019
269: Adds try_for_each combinator r=yoshuawuyts a=montekki

This should probably be hidden behind the unstable feature.

---
Ref: #129 
Stdlib: https://doc.rust-lang.org/beta/std/iter/trait.Iterator.html#method.try_for_each

Co-authored-by: Fedor Sakharov <[email protected]>
@bors
Copy link
Contributor

bors bot commented Oct 2, 2019

Build failed

  • continuous-integration/travis-ci/push

@yoshuawuyts
Copy link
Contributor

It looks like nightly is currently broken; https://github.com/async-rs/async-std/pull/269/checks?check_run_id=243557011 passed, so going to go ahead and merge this manually. Thanks heaps!

@yoshuawuyts yoshuawuyts merged commit 50b6d0b into async-rs:master Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants