mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 01:32:57 +01:00
rename blocking fn
This commit is contained in:
parent
c2a350b33f
commit
b6b2eadb3a
@ -238,7 +238,7 @@ pub mod web {
|
|||||||
|
|
||||||
/// Execute blocking function on a thread pool, returns future that resolves
|
/// Execute blocking function on a thread pool, returns future that resolves
|
||||||
/// to result of the function execution.
|
/// to result of the function execution.
|
||||||
pub fn blocking<F, I, E>(f: F) -> CpuFuture<I, E>
|
pub fn block<F, I, E>(f: F) -> CpuFuture<I, E>
|
||||||
where
|
where
|
||||||
F: FnOnce() -> Result<I, E> + Send + 'static,
|
F: FnOnce() -> Result<I, E> + Send + 'static,
|
||||||
I: Send + 'static,
|
I: Send + 'static,
|
||||||
|
Loading…
Reference in New Issue
Block a user