Created
July 5, 2019 11:03
-
-
Save WildStudio/adebe7e4a9c6ff0d52a18edcf92cd23b to your computer and use it in GitHub Desktop.
Combine: Cancellable Publisher
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
let cancellablePublisher = somePublisher.sink { data in | |
// do something | |
} | |
cancellablePublisher.cancel() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment