Wie kann ich dispatch_sync, dispatch_async, dispatch_after usw. in Swift 3, Swift 4 und darüber hinaus ausführen?

Ich habe viel Code in Swift 2.x (oder sogar 1.x) Projekten, der so aussieht: // Move to a background thread to do some long running work dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) { let image = self.loadOrGenerateAnImage() // Bounce back to the main thread to...