fix(classes): cleanup resources, add cancellable timeouts, and fix bugs in several core utility classes
This commit is contained in:
@@ -20,4 +20,18 @@ export class LoopTracker<T> {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* resets the loop tracker, clearing all tracked objects
|
||||
*/
|
||||
public reset() {
|
||||
this.referenceObjectMap.wipe();
|
||||
}
|
||||
|
||||
/**
|
||||
* destroys the loop tracker and its underlying ObjectMap
|
||||
*/
|
||||
public destroy() {
|
||||
this.referenceObjectMap.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user