From a0a356152e87f03ceb6f431f17405d8eb96cb069 Mon Sep 17 00:00:00 2001 From: Blas Rodriguez Irizar Date: Wed, 9 Sep 2020 05:50:38 +0200 Subject: [PATCH] sync: remove rt-core from blocking_{send,recv} (#2825) --- tokio/src/sync/mpsc/bounded.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tokio/src/sync/mpsc/bounded.rs b/tokio/src/sync/mpsc/bounded.rs index 2810dad0d..c7ecd9fc6 100644 --- a/tokio/src/sync/mpsc/bounded.rs +++ b/tokio/src/sync/mpsc/bounded.rs @@ -184,8 +184,6 @@ impl Receiver { /// sync_code.join().unwrap() /// } /// ``` - #[cfg(feature = "rt-core")] - #[cfg_attr(docsrs, doc(cfg(feature = "rt-core")))] pub fn blocking_recv(&mut self) -> Option { let mut enter_handle = crate::runtime::enter::enter(false); enter_handle.block_on(self.recv()).unwrap() @@ -456,8 +454,6 @@ impl Sender { /// 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> { let mut enter_handle = crate::runtime::enter::enter(false); enter_handle.block_on(self.send(value)).unwrap()