We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
weak map is not being cleaned up.
getTimersDisposable leaves an entry in the registeredTimers WeakMap and individual cancelIds are left after tasks have completed
getTimersDisposable
registeredTimers
cancelIds
The text was updated successfully, but these errors were encountered:
Doesn't leak:
_openHandler() { if (this.onOpened) { run(() => { schedule('sync', () => { if (!this.isDestroyed && !this.isDestroying && this.onOpened) { this.onOpened(this, this.url); } }); }); } }
Leaks:
_openHandler() { if (this.onOpened) { scheduleTask(this, 'sync', () => { if (this.onOpened) { this.onOpened(this, this.url); } }); } } ... destroy() { runDisposables(this); this.close(); this.onOpened = null; this.onClosed = null; this.onError = null; this.onMessage = null; this._super(); }
Sorry, something went wrong.
I think the cancelId is being left in the registeredTimers array once the scheduled execution is complete. This is a problem for long lived objects.
cancelId
No branches or pull requests
weak map is not being cleaned up.
getTimersDisposable
leaves an entry in theregisteredTimers
WeakMap and individualcancelIds
are left after tasks have completedThe text was updated successfully, but these errors were encountered: