CancelBag
A DisposeBag for Combine.
Usage
let cancelBag = CancelBag()
myPublisher
.sink { _ in }
.cancel(with: cancelBag)
Installation
-
Using Swift Package Manager:
import PackageDescription let package = Package( name: "MyAwesomeApp", dependencies: [ .Package(url: "https://github.com/devxoul/CancelBag", majorVersion: 1), ] )
-
Using CocoaPods:
pod 'CancelBag'
License
CancelBag is under MIT license. See the LICENSE file for more info.