pub(crate) fn wrap_fn<'a, F, T>(task: F) -> impl FnOnce(T) -> AppError + 'awhere F: FnOnce() -> String + 'a, T: Into<Box<dyn Error>>,