Function lemmy_api_common::blocking[][src]

pub async fn blocking<F, T>(pool: &DbPool, f: F) -> Result<T, LemmyError> where
    F: FnOnce(&PgConnection) -> T + Send + 'static,
    T: Send + 'static,