DisposeBag

public class DisposeBag

Bag for automatic disposal Dispose bag is disposing all registered disposers when is deinited So if you need an event only in some object - jsut create a dispose bag as an instance of that object and listener will be automaticaly when your object will be deinited

  • Registering disposer for automatic dispose

    Declaration

    Swift

    public func addDisposer(_ disposer: Disposer)

    Parameters

    disposer

    Registration disposer

  • Forcing disposing of all registered disposers

    Declaration

    Swift

    public func disposeAll()
  • Undocumented

    Declaration

    Swift

    public init()