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'scancel()
Swift’s Task'scancel()
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.
Disposable 🗑️
A
Disposableis a cancellation handler representing arbitrary long running work.This library is used in the
Emitterreactive streams library and internally within theStateTreeframework.Purpose
A
Disposableis intended to bridge different cancellable sources including:Cancellable'scancel()Task'scancel()This package also provides a
DisposableStagewhich allows for groupingDisposablesand handling them as a single entity — i.e. as Combine usesSet<AnyCancellable>and RxSwift usesDisposeBag.