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 v1.0.0
🗑️ Disposable lifecycle handlers. 'Disposables' are source-agnostic and can represent custom handlers or wrap Swift Tasks, Combine Cancellable, RxSwift Disposables, etc.
⭐️ 2
🕓 21 weeks ago
iOS macOS watchOS tvOS macCatalyst
.package(url: "https://github.com/GoodHatsLLC/Disposable.git", from: "v1.0.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()

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: 2
Last commit: 21 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

Release Notes

21 weeks ago
  • mark wider platform compatibility
  • add MIT license
  • update documentation and modern swift syntax

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