File tree 2 files changed +1
-20
lines changed
2 files changed +1
-20
lines changed Original file line number Diff line number Diff line change 1
- /// Extracts the successful type of a `Poll<Result<T, E>>`.
2
- ///
3
- /// This macro bakes in propagation of `Pending` and `Err` signals by returning early.
4
- #[ macro_export]
5
- macro_rules! try_ready {
6
- ( $x: expr) => {
7
- match $x {
8
- $crate:: core_reexport:: task:: Poll :: Ready ( Ok ( x) ) => x,
9
- $crate:: core_reexport:: task:: Poll :: Ready ( Err ( e) ) =>
10
- return $crate:: core_reexport:: task:: Poll :: Ready ( Err ( e. into( ) ) ) ,
11
- $crate:: core_reexport:: task:: Poll :: Pending =>
12
- return $crate:: core_reexport:: task:: Poll :: Pending ,
13
- }
14
- }
15
- }
16
-
17
1
/// Extracts the successful type of a `Poll<T>`.
18
2
///
19
3
/// This macro bakes in propagation of `Pending` signals by returning early.
Original file line number Diff line number Diff line change @@ -63,10 +63,7 @@ compile_error!("The `never-type` feature requires the `nightly` feature as an ex
63
63
#[ doc( hidden) ] pub use futures_core:: task:: Poll ;
64
64
65
65
// Macro reexports
66
- pub use futures_util:: {
67
- // Error/readiness propagation
68
- try_ready, ready,
69
- } ;
66
+ pub use futures_util:: ready; // Readiness propagation
70
67
#[ cfg( feature = "async-await" ) ]
71
68
pub use futures_util:: {
72
69
// Async-await
You can’t perform that action at this time.
0 commit comments