pub fn current_thread_name<F, U>(f: F) -> Uwhere
    F: Fn(&str) -> U,