No-op on dispose call instead of throwing error

This commit is contained in:
R Midhun Suresh 2025-08-11 10:42:44 +05:30
parent d86dcb1b7b
commit 4caf52abf3
No known key found for this signature in database

View File

@ -26,7 +26,7 @@ export class Disposables {
* Relinquish all tracked disposable values
*/
public dispose(): void {
this.throwIfDisposed();
if (this.isDisposed) return;
this._isDisposed = true;
for (const disposable of this.disposables) {
if (typeof disposable === "function") {