From f7062378281f73db7517ddf0034da247e141f194 Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 9 Feb 2024 01:03:38 +0100 Subject: [PATCH] chore: removed blocking_recv just block_on(recv()) ... --- src/api/controller.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/api/controller.rs b/src/api/controller.rs index 465a9f7..cf45684 100644 --- a/src/api/controller.rs +++ b/src/api/controller.rs @@ -58,11 +58,4 @@ pub trait Controller : Sized + Send + Sync { /// attempt to receive a value without blocking, return None if nothing is available fn try_recv(&self) -> Result>; - - /// sync variant of [Self::recv], blocking invoking thread - /// this calls [Controller::recv] inside a [tokio::runtime::Runtime::block_on] - #[cfg(feature = "sync")] - fn blocking_recv(&self, rt: &tokio::runtime::Handle) -> Result { - rt.block_on(self.recv()) - } }