Class Timer
Assembly: P42.Utils.dll
Syntax
public sealed class Timer : CancellationTokenSource, IDisposable
Constructors
|
Improve this Doc
View Source
Timer(TimerCallback, Object, TimeSpan, TimeSpan)
Declaration
public Timer(TimerCallback callback, object state, TimeSpan dueTime, TimeSpan period)
Parameters
Methods
|
Improve this Doc
View Source
Cancel()
Declaration
|
Improve this Doc
View Source
Change(Int64, Int64)
Declaration
public void Change(long dueTime = -1L, long period = -1L)
Parameters
|
Improve this Doc
View Source
Change(TimeSpan, TimeSpan)
Declaration
public void Change(TimeSpan dueTime, TimeSpan period)
Parameters
|
Improve this Doc
View Source
Change(UInt32, UInt32)
Declaration
public void Change(uint dueTime, uint period)
Parameters
|
Improve this Doc
View Source
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
Boolean |
disposing |
|
Overrides
|
Improve this Doc
View Source
StartTimer(TimeSpan, Func<Boolean>)
Declaration
public static void StartTimer(TimeSpan interval, Func<bool> callback)
Parameters
|
Improve this Doc
View Source
StartTimer(TimeSpan, Func<Task<Boolean>>)
Declaration
public static void StartTimer(TimeSpan interval, Func<Task<bool>> callback)
Parameters
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods