Swiftpack.co - GoodHatsLLC/Disposable as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by GoodHatsLLC.
GoodHatsLLC/Disposable v0.7.0
🗑️ Disposable lifecycle handlers. 'Disposables' are source-agnostic and can represent custom handlers or wrap Swift Tasks, Combine Cancellable, RxSwift Disposables, etc.
⭐️ 1
🕓 1 week ago
iOS macOS
.package(url: "https://github.com/GoodHatsLLC/Disposable.git", from: "v0.7.0")

Disposable 🗑️

A Disposable is a cancellation handler representing arbitrary long running work.

This library is used in the Emitter reactive streams library and internally within the StateTree framework.

Purpose

A Disposable is intended to bridge different cancellable sources including:

  • Combine's Cancellable's cancel()
  • Swift's Task's cancel()
  • RxSwift's Disposable's dispose()

This package also provides a DisposableStage which allows for grouping Disposables and handling them as a single entity — i.e. as Combine uses Set<AnyCancellable> and RxSwift uses DisposeBag.

GitHub

link
Stars: 1
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Related Packages

Release Notes

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics