Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ObservableDisposableSet

An observable object which manages a collection of disposable items. The namespace for the ObservableDisposableSet class statics.

Hierarchy

Implements

Index

Properties

Private _disposed

_disposed: Signal<this, void> = new Signal<this, void>(this)

Accessors

disposed

  • get disposed(): ISignal<this, void>
  • A signal emitted when the set is disposed.

    Returns ISignal<this, void>

isDisposed

  • get isDisposed(): boolean

Methods

add

  • 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

clear

  • clear(): void

contains

  • Test whether the set contains a specific item.

    Parameters

    Returns boolean

    true if the set contains the item, false otherwise.

dispose

  • dispose(): void

remove

Static from

  • Create a disposable set from an iterable of items.

    Parameters

    • items: IterableOrArrayLike<IDisposable>

      The iterable or array-like object of interest.

    Returns DisposableSet

    A new disposable initialized with the given items.

Generated using TypeDoc