Skip to content

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
#![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