From df15c04f2867c43480a2094210e9c95f22b88be2 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Tue, 8 Oct 2019 14:24:37 +0200 Subject: [PATCH] spawn_blocking -> blocking Signed-off-by: Yoshua Wuyts --- src/task/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,