spawn_blocking -> blocking

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
write-by-ref
Yoshua Wuyts 5 years ago
parent 958d3a9e27
commit df15c04f28
No known key found for this signature in database
GPG Key ID: 24EA8164F96777ED

@ -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<F, R>(future: F) -> blocking::JoinHandle<R>
pub fn blocking<F, R>(future: F) -> blocking::JoinHandle<R>
where
F: crate::future::Future<Output = R> + Send + 'static,
R: Send + 'static,

Loading…
Cancel
Save