pub(super) fn try_with_current<F, R>(f: F) -> Rwhere F: FnOnce(Option<&Thread>) -> R,
Gets a reference to the handle of the thread that invokes it, if the handle has been initialized.