This commit is contained in:
CortexCore
2025-03-09 13:38:23 +08:00
parent 8261a458e2
commit 18239a5ae4
67 changed files with 8573 additions and 831 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();