this.finalize();
}
- public finalize(): void {
+ protected finalize(): void {
for (let prototype = this; prototype !== null; prototype = Object.getPrototypeOf(prototype))
if (prototype.hasOwnProperty("@resource"))
for (const property of (prototype as any)["@resource"] as string[])
this.set = new Set<Value>();
}
- public finalize(): void {
+ protected finalize(): void {
this.clear();
super.finalize();
}
this.waiters = null;
}
- public finalize(): void {
+ protected finalize(): void {
this.cancel();
super.finalize();
}
this.map = new Map<Key, Value>();
}
- public finalize(): void {
+ protected finalize(): void {
this.clear();
super.finalize();
}
this.array = new Array(size).fill(null);
}
- public finalize(): void {
+ protected finalize(): void {
for (const value of this.array)
if (value !== null)
value.release();
this.remove = remove;
}
- public finalize(): void {
+ protected finalize(): void {
this.remove();
super.finalize();
}