diff options
author | Blas Rodriguez Irizar <rodrigblas@gmail.com> | 2020-09-09 05:50:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-08 20:50:38 -0700 |
commit | a0a356152e87f03ceb6f431f17405d8eb96cb069 (patch) | |
tree | d143a87742e63d2e8646099c6312bc5ab973d80c /tokio/src/sync | |
parent | ea79c95c67f83773d69d2d3c6bd5daa5528f3ca0 (diff) |
sync: remove rt-core from blocking_{send,recv} (#2825)
Diffstat (limited to 'tokio/src/sync')
-rw-r--r-- | tokio/src/sync/mpsc/bounded.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tokio/src/sync/mpsc/bounded.rs b/tokio/src/sync/mpsc/bounded.rs index 2810dad0..c7ecd9fc 100644 --- a/tokio/src/sync/mpsc/bounded.rs +++ b/tokio/src/sync/mpsc/bounded.rs @@ -184,8 +184,6 @@ impl<T> Receiver<T> { /// sync_code.join().unwrap() /// } /// ``` - #[cfg(feature = "rt-core")] - #[cfg_attr(docsrs, doc(cfg(feature = "rt-core")))] pub fn blocking_recv(&mut self) -> Option<T> { let mut enter_handle = crate::runtime::enter::enter(false); enter_handle.block_on(self.recv()).unwrap() @@ -456,8 +454,6 @@ impl<T> Sender<T> { /// sync_code.join().unwrap() /// } /// ``` - #[cfg(feature = "rt-core")] - #[cfg_attr(docsrs, doc(cfg(feature = "rt-core")))] pub fn blocking_send(&mut self, value: T) -> Result<(), SendError<T>> { let mut enter_handle = crate::runtime::enter::enter(false); enter_handle.block_on(self.send(value)).unwrap() |