DisposableHandle

public final class DisposableHandle

Represents a handle to a disposable previously added to a CompositeDisposable.

Note

add(_:) method of CompositeDisposable creates instances of DisposableHandle.
  • Remove the pointed-to disposable from its CompositeDisposable.

    Note

    This is useful to minimize memory growth, by removing disposables that are no longer needed.

    Declaration

    Swift

    public func remove()