Asynchronous swift 3
问题 I need to make an asynchronous call so that the second method is only called after the first one is completed.Both methods are network calls. Something like this: signIn() getContacts() I want to make sure that getContacts only gets called after the signIn is completed. FWIW, I can't edit the methods signatures because they are from a Google SDK. This is what I tried: let queue = DispatchQueue(label: "com.app.queue") queue.async { signIn() getContacts() } 回答1: Async calls, by their nature, do