Construct a new disposable set.
Test whether the set has been disposed.
Add a disposable item to the set.
The item to add to the set.
If the item is already contained in the set, this is a no-op.
Remove all items from the set.
Test whether the set contains a specific item.
The item of interest.
true
if the set contains the item, false
otherwise.
Dispose of the set and the items it contains.
Items are disposed in the order they are added to the set.
Remove a disposable item from the set.
The item to remove from the set.
If the item is not contained in the set, this is a no-op.
Create a disposable set from an iterable of items.
The iterable or array-like object of interest.
A new disposable initialized with the given items.
Generated using TypeDoc
An object which manages a collection of disposable items. The namespace for the
DisposableSet
class statics.