Table of Contents

Interface IPeriodicTimer

Namespace
AdvanceFileUpload.API
Assembly
AdvanceFileUpload.API.dll

Represents a timer that provides periodic ticks for executing tasks.

public interface IPeriodicTimer : IDisposable
Inherited Members

Properties

Period

Gets the period of the timer.

TimeSpan Period { get; }

Property Value

TimeSpan

Methods

WaitForNextTickAsync(CancellationToken)

Waits asynchronously for the next tick of the timer.

ValueTask<bool> WaitForNextTickAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

ValueTask<bool>

A task that resolves to true if the timer ticked, or false if the wait was canceled.