Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devxoul/CancelBag
A DisposeBag for Combine
https://github.com/devxoul/CancelBag
combine
Last synced: 3 months ago
JSON representation
A DisposeBag for Combine
- Host: GitHub
- URL: https://github.com/devxoul/CancelBag
- Owner: devxoul
- License: mit
- Created: 2019-06-23T12:10:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-24T00:47:43.000Z (over 5 years ago)
- Last Synced: 2024-10-28T13:51:07.396Z (3 months ago)
- Topics: combine
- Language: Swift
- Size: 1.95 KB
- Stars: 54
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - CancelBag - A DisposeBag for Combine (combine)
- awesome - CancelBag - A DisposeBag for Combine (combine)
README
# CancelBag
A DisposeBag for [Combine](https://developer.apple.com/documentation/combine).
## Usage
```swift
let cancelBag = CancelBag()myPublisher
.sink { _ in }
.cancel(with: cancelBag)
```## Installation
- **Using [Swift Package Manager](https://swift.org/package-manager)**:
```swift
import PackageDescriptionlet package = Package(
name: "MyAwesomeApp",
dependencies: [
.Package(url: "https://github.com/devxoul/CancelBag", majorVersion: 1),
]
)
```- **Using [CocoaPods](https://cocoapods.org)**:
```ruby
pod 'CancelBag'
```## License
**CancelBag** is under MIT license. See the [LICENSE](LICENSE) file for more info.