Disposable

1.0.0

🗑️ Disposable lifecycle handlers. 'Disposables' are source-agnostic and can represent custom handlers or wrap Swift Tasks, Combine Cancellable, RxSwift Disposables, etc.
GoodHatsLLC/Disposable

What's New

2023-07-03T10:12:46Z
  • mark wider platform compatibility
  • add MIT license
  • update documentation and modern swift syntax

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.

Description

  • Swift Tools 5.8.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sat Nov 02 2024 10:40:19 GMT-0900 (Hawaii-Aleutian Daylight Time)