TimeoutController Class
Namespace: Cysharp.Threading.Tasks
Assembly: cs.temp.dll.dll
public sealed class TimeoutController : IDisposable
Inheritance
System.Object → TimeoutControllerImplements
System.IDisposable
Members
Constructors
Name | Description |
---|---|
TimeoutController(CancellationTokenSource, DelayType, PlayerLoopTiming) | |
TimeoutController(DelayType, PlayerLoopTiming) |
Methods
Name | Description |
---|---|
Dispose() | |
IsTimeout() | |
Reset() | |
Timeout(Int32) | |
Timeout(TimeSpan) |
Constructors
TimeoutController(CancellationTokenSource, DelayType, PlayerLoopTiming)
public TimeoutController(CancellationTokenSource linkCancellationTokenSource, DelayType delayType = DelayType.DeltaTime, PlayerLoopTiming delayTiming = PlayerLoopTiming.Update)
Parameters
linkCancellationTokenSource
CancellationTokenSourcedelayType
DelayTypedelayTiming
PlayerLoopTiming
TimeoutController(DelayType, PlayerLoopTiming)
public TimeoutController(DelayType delayType = DelayType.DeltaTime, PlayerLoopTiming delayTiming = PlayerLoopTiming.Update)
Parameters
delayType
DelayTypedelayTiming
PlayerLoopTiming
Methods
Dispose()
public void Dispose()
IsTimeout()
public bool IsTimeout()
Returns
- System.Boolean
Reset()
public void Reset()
Timeout(Int32)
public CancellationToken Timeout(int millisecondsTimeout)
Parameters
millisecondsTimeout
System.Int32
Returns
- CancellationToken
Timeout(TimeSpan)
public CancellationToken Timeout(TimeSpan timeout)
Parameters
timeout
System.TimeSpan
Returns
- CancellationToken
Implements
System.IDisposable