Timer.DisposeAsync 方法

定义

释放由 Timer 的当前实例使用的所有资源。Releases all resources used by the current instance of Timer.

public:
 virtual System::Threading::Tasks::ValueTask DisposeAsync();
public System.Threading.Tasks.ValueTask DisposeAsync ();
abstract member DisposeAsync : unit -> System.Threading.Tasks.ValueTask
override this.DisposeAsync : unit -> System.Threading.Tasks.ValueTask
Public Function DisposeAsync () As ValueTask

返回

ValueTask

当所有与计时器相关联的工作停止时完成的 ValueTaskA ValueTask that completes when all work associated with the timer has ceased.

实现

适用于