ambiguous use of selector dataTask(with: completionHandler:)
问题 I'm trying to get a selector of the dataTask(with:completionHandler:) method defined in URLSession which uses URLRequest object like below, but getting error as there are two methods with slightly two different params names (overloaded methods - 1. one uses URLRequest object as param and another uses URL) : let dataTaskSelector = #selector(URLSession.dataTask(with: completionHandler:)) I have tried a different approach like below (mentioned in https://github.com/apple/swift-evolution/blob