Skip to content
New issue

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

Always dispose cancellation token sources #926

Merged
merged 1 commit into from
Feb 21, 2019
Merged

Conversation

Im5tu
Copy link
Contributor

@Im5tu Im5tu commented Feb 21, 2019

If CancellationTokenSource's aren't disposed, then there timers are left on the timer queue. Internally, the timer queue runs through each timer to determine whether or not to fire the said time, as it's implemented as a linked list. So this not only clears up the timer resources, but makes the other times more "accurate" as there is less work to do.

@kblok kblok merged commit 7a1de99 into hardkoded:master Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants