You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it cant be disposed in DispatcherTimer that we should call the Stop to dispose it.
And I find another bug in DispatcherTimer like wpf. If the dever use DispatcherTimer and give the zero interval and dont write the Tick it will use 100% cpu in a thread.
I think it needs to check if the Tick is null and when the Tick is null, it will not really run.
The text was updated successfully, but these errors were encountered:
Avalonia/src/Avalonia.Base/Threading/DispatcherTimer.cs
Line 13 in ec9af9c
As this code that DispatcherTimer is the property
_timer
and it can be disposed in the destructor .Avalonia/src/Avalonia.Base/Threading/DispatcherTimer.cs
Line 58 in ec9af9c
But it cant be disposed in DispatcherTimer that we should call the Stop to dispose it.
And I find another bug in DispatcherTimer like wpf. If the dever use DispatcherTimer and give the zero interval and dont write the Tick it will use 100% cpu in a thread.
I think it needs to check if the Tick is null and when the Tick is null, it will not really run.
The text was updated successfully, but these errors were encountered: