File tree 1 file changed +1
-17
lines changed
1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ use nix::unistd::close;
74
74
#[ cfg( feature = "use_tokio" ) ]
75
75
use pin_utils:: unsafe_pinned;
76
76
#[ cfg( feature = "use_tokio" ) ]
77
- use tokio:: { io:: PollEvented , runtime :: Handle } ;
77
+ use tokio:: io:: PollEvented ;
78
78
79
79
pub use error:: Error ;
80
80
@@ -482,22 +482,6 @@ impl Pin {
482
482
PinStream :: init ( self . clone ( ) )
483
483
}
484
484
485
- /// Get a Stream of pin values for this pin
486
- ///
487
- /// The PinStream object can be used with the `tokio` crate. You should probably call
488
- /// `set_edge(Edge::BothEdges)` before using this.
489
- ///
490
- /// Note that the values produced are the value of the pin as soon as we get to handling the
491
- /// interrupt in userspace. Each time this stream produces a value, a change has occurred, but
492
- /// it could end up producing the same value multiple times if the value has changed back
493
- /// between when the interrupt occurred and when the value was read.
494
- ///
495
- /// This method is only available when the `use_tokio` crate feature is enabled.
496
- #[ cfg( feature = "use_tokio" ) ]
497
- pub fn get_value_stream_with_handle ( & self , _handle : & Handle ) -> Result < PinValueStream > {
498
- Ok ( PinValueStream :: new ( PinStream :: init ( self . clone ( ) ) ?) )
499
- }
500
-
501
485
/// Get a Stream of pin values for this pin
502
486
///
503
487
/// The PinStream object can be used with the `tokio` crate. You should probably call
You can’t perform that action at this time.
0 commit comments