-
Notifications
You must be signed in to change notification settings - Fork 341
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
Conversation
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)] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
bors r+ |
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]>
Build failed
|
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! |
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