pub fn sync_main_thread<F>(method: F) where
    F: Fn() + Send + 'static, 
Expand description

Synchronously execute a callback on the main thread via Grand Central Dispatch.