-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Limit futures
dependency to Stream
via feature flag
#1774
Merged
Merged
Commits on Nov 15, 2019
-
remove
futures
dependency fromtokio
In an effort to reach API stability, the `tokio` crate is shedding its _public_ dependencies on crates that are either a) do not provide a stable (1.0+) release with longevity guarantees or b) match the `tokio` release cadence. Of course, implmementing `std` traits fits the requirements. Instead of publically dependending on `futures` from `tokio`, the `tokio-util` crate provides the necessary bridge to go from Tokio types to `futures` traits (primarily `Stream`). Instead of implementing `Stream` for iteration, types that are logically streams provide `async fn next_*` functions to obtain the next value. Avoiding the `next()` function name will allow for forwards compatibility once the `Stream` trait is provided by `std`. Additionally, some misc cleanup is also done: - `tokio::io::io` -> `tokio::io::util`. - `delay` -> `delay_until`. - `Timeout::new` -> `timeout(...)`. - `signal::ctrl_c()` returns a future instead of a stream. - `{tcp,unix}::Incoming` is removed (due to lack of `Stream` trait). - `time::Throttle` is removed (due to lack of `Stream` trait).
Configuration menu - View commit details
-
Copy full SHA for cd0e973 - Browse repository at this point
Copy the full SHA cd0e973View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cef1fa - Browse repository at this point
Copy the full SHA 8cef1faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 19006c3 - Browse repository at this point
Copy the full SHA 19006c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for fb7f606 - Browse repository at this point
Copy the full SHA fb7f606View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ae6d4b - Browse repository at this point
Copy the full SHA 4ae6d4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b419acc - Browse repository at this point
Copy the full SHA b419accView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9671b4c - Browse repository at this point
Copy the full SHA 9671b4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b6791cd - Browse repository at this point
Copy the full SHA b6791cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 97371c6 - Browse repository at this point
Copy the full SHA 97371c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 39ea191 - Browse repository at this point
Copy the full SHA 39ea191View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d80e87 - Browse repository at this point
Copy the full SHA 0d80e87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53278d5 - Browse repository at this point
Copy the full SHA 53278d5View commit details
Commits on Nov 16, 2019
-
Configuration menu - View commit details
-
Copy full SHA for ab2bbcd - Browse repository at this point
Copy the full SHA ab2bbcdView commit details -
Configuration menu - View commit details
-
Copy full SHA for ac047a2 - Browse repository at this point
Copy the full SHA ac047a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b962cc - Browse repository at this point
Copy the full SHA 5b962ccView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.