pub(crate) fn wrap<'a, T>(task: &'a str) -> impl FnOnce(T) -> AppError + 'awhere T: Into<Box<dyn Error>>,