Disposable

  • A type-erased disposable that forwards operations to an underlying disposable.

    See more

    Declaration

    Swift

    public final class AnyDisposable : Disposable
  • Represents something that can be “disposed”, usually associated with freeing resources or canceling work.

    See more

    Declaration

    Swift

    public protocol Disposable : AnyObject
  • A disposable that will dispose of any number of other disposables.

    See more

    Declaration

    Swift

    public final class CompositeDisposable : Disposable
  • A disposable that, upon deinitialization, will automatically dispose of its inner disposable.

    See more

    Declaration

    Swift

    public final class ScopedDisposable<Inner> : Disposable where Inner : Disposable
  • A disposable that disposes of its wrapped disposable, and allows its wrapped disposable to be replaced.

    See more

    Declaration

    Swift

    public final class SerialDisposable : Disposable