pub fn is_running() -> bool {
        if let Some((_, cnt)) = Self::try_current() {
            unsafe {*cnt != 0}
        } else {
            false
        }
    }
/// Returns true if there is a running transaction on the current thread
Returns true if there is a running transaction on the current thread
Returns true if there is a running transaction on the current thread
pub fn is_running() -> bool {
        if let Some((_, cnt)) = Self::try_current() {
            unsafe {*cnt != 0}
        } else {
            false
        }
    }
pub fn is_running ( ) -> bool { if let Some ( ( _ , cnt ) ) = Self :: try_current ( ) { unsafe { * cnt != 0 } } else { false } }
Returns true if there is a running transaction on the current thread
Returns true if there is a running transaction on the current thread