Thread.isMainThread throwing compiler warnings

What platform did you test this on? dispatch_sync is explicitly documented not to perform the same-thread optimization when targeting the main queue.

2 Likes