1
0
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:
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 /// 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,