RxSwift/Disposables

  • Represents a disposable resource that can be checked for disposal status.

    See more

    Declaration

    Swift

    public final class BooleanDisposable : Cancelable
  • Represents a group of disposable resources that are disposed together.

    See more

    Declaration

    Swift

    public final class CompositeDisposable : DisposeBase, Cancelable
  • A collection of utility methods for common disposable operations.

    See more

    Declaration

    Swift

    public struct Disposables
  • 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.

    See more

    Declaration

    Swift

    public final class DisposeBag : DisposeBase
  • Base class for all disposables.

    Declaration

    Swift

    public class DisposeBase
  • Represents a disposable resource that only disposes its underlying disposable resource when all dependent disposable objects have been disposed.

    See more

    Declaration

    Swift

    public final class RefCountDisposable : DisposeBase, Cancelable
  • Represents a disposable resource whose disposal invocation will be scheduled on the specified scheduler.

    See more

    Declaration

    Swift

    public final class ScheduledDisposable : Cancelable
  • Represents a disposable resource whose underlying disposable resource can be replaced by another disposable resource, causing automatic disposal of the previous underlying disposable resource.

    See more

    Declaration

    Swift

    public final class SerialDisposable : DisposeBase, Cancelable
  • 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.

    See more

    Declaration

    Swift

    public final class SingleAssignmentDisposable : DisposeBase, Cancelable