pub fn is_main_thread() -> bool👎Deprecated: use
objc2::MainThreadMarker::new().is_some()Available on crate feature
NSThread only.Expand description
Whether the current thread is the main thread.
Deprecated. Prefer MainThreadMarker::new().is_some() or
NSThread::isMainThread_class() instead.