dispose() {
        if (this._isDisposed) {
            return;
        }
        markAsDisposed(this);
        this._isDisposed = true;
        this.clear();
    }
Dispose of all registered disposables and mark this object as disposed.

Any future disposables added to this object will be disposed of on `add`.