Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a periodic timer that enables waiting asynchronously for timer ticks.
public ref class PeriodicTimer sealed : IDisposable
public sealed class PeriodicTimer : IDisposable
type PeriodicTimer = class interface IDisposable
Public NotInheritable Class PeriodicTimer Implements IDisposable
This timer is intended to be used only by a single consumer at a time: only one call to WaitForNextTickAsync(CancellationToken) may be in flight at any given moment.
Initializes the timer.
Stops the timer and releases the associated managed resources.
Determines whether the specified object is equal to the current object.(Inherited from Object)
Ensures that resources are freed and other cleanup operations are performed when the garbage collector reclaims the PeriodicTimer object.
Serves as the default hash function.(Inherited from Object)
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
Returns a string that represents the current object.(Inherited from Object)
Waits for the next tick of the timer, or for the timer to be stopped.