public abstract class PlayerLoopTimer : IDisposable, IPlayerLoopItem
InheritanceSystem.Object → PlayerLoopTimer
Implements
System.IDisposable
Members Constructors Methods Name Description Create(TimeSpan, Boolean, DelayType, PlayerLoopTiming, CancellationToken, Action<Object>, Object) Dispose() MoveNextCore() ResetCore(Nullable<TimeSpan>) Restart()Restart(Reset and Start) timer.
Restart(TimeSpan)Restart(Reset and Start) and change interval.
StartNew(TimeSpan, Boolean, DelayType, PlayerLoopTiming, CancellationToken, Action<Object>, Object) Stop()Stop timer.
Explicit Interface Implementations Constructors PlayerLoopTimer(Boolean, PlayerLoopTiming, CancellationToken, Action<Object>, Object)protected PlayerLoopTimer(bool periodic, PlayerLoopTiming playerLoopTiming, CancellationToken cancellationToken, Action<object> timerCallback, object state)
Parameters
periodic
System.Boolean
playerLoopTiming
PlayerLoopTiming
cancellationToken
CancellationToken
timerCallback
System.Action<System.Object>
state
System.Object
public static PlayerLoopTimer Create(TimeSpan interval, bool periodic, DelayType delayType, PlayerLoopTiming playerLoopTiming, CancellationToken cancellationToken, Action<object> timerCallback, object state)
Parameters
interval
System.TimeSpan
periodic
System.Boolean
delayType
DelayType
playerLoopTiming
PlayerLoopTiming
cancellationToken
CancellationToken
timerCallback
System.Action<System.Object>
state
System.Object
protected abstract bool MoveNextCore()
Returns
protected abstract void ResetCore(TimeSpan? newInterval)
Parameters
newInterval
System.Nullable<System.TimeSpan>
Restart(Reset and Start) timer.
Restart(TimeSpan)Restart(Reset and Start) and change interval.
public void Restart(TimeSpan interval)
Parameters
interval
System.TimeSpan
public static PlayerLoopTimer StartNew(TimeSpan interval, bool periodic, DelayType delayType, PlayerLoopTiming playerLoopTiming, CancellationToken cancellationToken, Action<object> timerCallback, object state)
Parameters
interval
System.TimeSpan
periodic
System.Boolean
delayType
DelayType
playerLoopTiming
PlayerLoopTiming
cancellationToken
CancellationToken
timerCallback
System.Action<System.Object>
state
System.Object
Stop timer.
Explicit Interface Implementations IPlayerLoopItem.MoveNext()bool IPlayerLoopItem.MoveNext()
Returns
System.IDisposable
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4