Class ObservableDisposableSet

An observable object which manages a collection of disposable items.

Hierarchy (view full)

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

_disposed: Signal<ObservableDisposableSet, void> = ...

Accessors

Methods

  • Add a disposable item to the set.

    Parameters

    • item: IDisposable

      The item to add to the set.

      Notes

      If the item is already contained in the set, this is a no-op.

    Returns void

  • Test whether the set contains a specific item.

    Parameters

    Returns boolean

    true if the set contains the item, false otherwise.

  • Remove a disposable item from the set.

    Parameters

    • item: IDisposable

      The item to remove from the set.

      Notes

      If the item is not contained in the set, this is a no-op.

    Returns void