forked from mirror/async-std
spawn_blocking -> blocking
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
parent
958d3a9e27
commit
df15c04f28
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ pub(crate) mod blocking;
|
||||||
#[cfg(any(feature = "unstable", feature = "docs"))]
|
#[cfg(any(feature = "unstable", feature = "docs"))]
|
||||||
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn spawn_blocking<F, R>(future: F) -> blocking::JoinHandle<R>
|
pub fn blocking<F, R>(future: F) -> blocking::JoinHandle<R>
|
||||||
where
|
where
|
||||||
F: crate::future::Future<Output = R> + Send + 'static,
|
F: crate::future::Future<Output = R> + Send + 'static,
|
||||||
R: Send + 'static,
|
R: Send + 'static,
|
||||||
|
|
Loading…
Reference in a new issue