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:
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_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…
Reference in a new issue