1
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user