Created
September 12, 2017 06:48
-
-
Save Otbivnoe/272c3fa9ff77a3493e084e80099b24fa to your computer and use it in GitHub Desktop.
This file contains hidden or 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
let observable = Observable<Void>.create { observer -> Disposable in | |
// run request | |
observer.onCompleted() | |
return Disposables.create { | |
// request.cancel() | |
print("disposed ☠️") | |
} | |
} | |
let disposable = observable.subscribe() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment