Closed sprzenus closed 4 years ago
After .decode(SomeType.self) now we are providing handlers and then start the request like this:
.decode(SomeType.self)
.onSuccess { object in print(object) } .onCompletion { result in print(result) } .start()
I want to shorten it to this (inspired by RxSwift):
.subscribe( onSuccess: { object in print(object) }, onCompletion: { result in pring(result) })
After
.decode(SomeType.self)
now we are providing handlers and then start the request like this:I want to shorten it to this (inspired by RxSwift):