Created
May 1, 2020 23:36
-
-
Save eMdOS/8c6ae52d357316061cb847541569dcee to your computer and use it in GitHub Desktop.
Medium: Extending the Swift's Result type
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
URLSession.shared | |
.dataTaskPublisher(for: url) | |
.map(\.data) | |
.decode(type: MoviesPage.self, decoder: JSONDecoder()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment