Created
July 12, 2021 17:06
-
-
Save atulkhatri/a45f7ef943c6fe5c2bd63b479339d605 to your computer and use it in GitHub Desktop.
tvOS Bootcamp Network Manager 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if let decodedResponse = try? JSONDecoder().decode(T.self, from: data) { | |
DispatchQueue.main.async { | |
completion?(decodedResponse, nil) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment