CancelBag 1.0.0

CancelBag 1.0.0

Maintained by Suyeol Jeon.



CancelBag 1.0.0

  • By
  • Suyeol Jeon

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.