2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-02-28 07:09:40 +00:00

spawn_blocking -> blocking

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
Yoshua Wuyts 2019-10-08 14:24:37 +02:00
parent 958d3a9e27
commit df15c04f28
No known key found for this signature in database
GPG key ID: 24EA8164F96777ED

View file

@ -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,