pub fn sync_main_thread<F>(method: F) where F: Fn() + Send + 'static,
Synchronously execute a callback on the main thread via Grand Central Dispatch.