docs/RxSwift/Disposables.html
`
BooleanDisposable
`
Represents a disposable resource that can be checked for disposal status.
Swift
public final class BooleanDisposable : Cancelable
`
CompositeDisposable
`
Represents a group of disposable resources that are disposed together.
Swift
public final class CompositeDisposable : DisposeBase, Cancelable
`
Disposables
`
A collection of utility methods for common disposable operations.
Swift
public struct Disposables
`
DisposeBag
`
Thread safe bag that disposes added disposables on deinit.
This returns ARC (RAII) like resource management to RxSwift.
In case contained disposables need to be disposed, just put a different dispose bag or create a new one in its place.
self.existingDisposeBag = DisposeBag()
In case explicit disposal is necessary, there is also CompositeDisposable.
Swift
public final class DisposeBag : DisposeBase
`
DisposeBase
`
Base class for all disposables.
Swift
public class DisposeBase
`
RefCountDisposable
`
Represents a disposable resource that only disposes its underlying disposable resource when all dependent disposable objects have been disposed.
Swift
public final class RefCountDisposable : DisposeBase, Cancelable
`
ScheduledDisposable
`
Represents a disposable resource whose disposal invocation will be scheduled on the specified scheduler.
Swift
public final class ScheduledDisposable : Cancelable
`
SerialDisposable
`
Represents a disposable resource whose underlying disposable resource can be replaced by another disposable resource, causing automatic disposal of the previous underlying disposable resource.
Swift
public final class SerialDisposable : DisposeBase, Cancelable
`
SingleAssignmentDisposable
`
Represents a disposable resource which only allows a single assignment of its underlying disposable resource.
If an underlying disposable resource has already been set, future attempts to set the underlying disposable resource will throw an exception.
Swift
public final class SingleAssignmentDisposable : DisposeBase, Cancelable