let url = URL(string: "https://jsonplaceholder.typicode.com/todos/1")!
let anyCancellable = session.dataTaskPublisher(for: url)
.handleResponse(handleRes)
.strPrint()
.twoDecode(twDecodable: Result<Todo,TodoError>.self, decoder: JSONDecoder())
.sink(receiveCompletion: {_ in }, receiveValue: handleResult)
-
Notifications
You must be signed in to change notification settings - Fork 1
ytyubox/CombineHelper
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published