1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-27 17:52:56 +01:00

rename blocking fn

This commit is contained in:
Nikolay Kim 2019-03-07 14:41:43 -08:00
parent c2a350b33f
commit b6b2eadb3a

View File

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