diff --git a/src/task/mod.rs b/src/task/mod.rs index 41b65c4..e6ae3fc 100644 --- a/src/task/mod.rs +++ b/src/task/mod.rs @@ -55,7 +55,7 @@ pub(crate) mod blocking; #[cfg(any(feature = "unstable", feature = "docs"))] #[cfg_attr(feature = "docs", doc(cfg(unstable)))] #[inline] -pub fn spawn_blocking(future: F) -> blocking::JoinHandle +pub fn blocking(future: F) -> blocking::JoinHandle where F: crate::future::Future + Send + 'static, R: Send + 'static,