This commit is contained in:
CortexCore
2025-03-04 20:32:30 +08:00
parent 42eb7b00d9
commit 268c24de0d
3 changed files with 8 additions and 14 deletions

View File

@@ -41,7 +41,7 @@ namespace BITKit
/// <summary>
/// 异步循环
/// </summary>
public interface IAsyncTicker
public interface IAsyncTicker:IDisposable
{
ulong TickCount { get; }
int TickRate { get; set; }
@@ -183,6 +183,7 @@ namespace BITKit
public void Dispose()
{
OnTickAsync = null;
_isDisposed = true;
_timer.Stop();
_timer.Dispose();