Function objc2::foundation::is_main_thread
source · [−]pub fn is_main_thread() -> bool
Available on crate feature
foundation
only.Expand description
Whether the current thread is the main thread.
pub fn is_main_thread() -> bool
foundation
only.Whether the current thread is the main thread.