mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-30 18:34:36 +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
|
||||
/// 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
|
||||
F: FnOnce() -> Result<I, E> + Send + 'static,
|
||||
I: Send + 'static,
|
||||
|
Loading…
Reference in New Issue
Block a user