CancellationTokenSourceExtensions Class
Assembly: cs.temp.dll.dll
public static class CancellationTokenSourceExtensions
Inheritance
System.Object →
CancellationTokenSourceExtensions
Members
Methods
Methods
CancelAfterSlim(CancellationTokenSource, Int32, Boolean, PlayerLoopTiming)
public static void CancelAfterSlim(this CancellationTokenSource cts, int millisecondsDelay, bool ignoreTimeScale = false, PlayerLoopTiming delayTiming = PlayerLoopTiming.Update)
Parameters
cts
System.Threading.CancellationTokenSource
millisecondsDelay
System.Int32
ignoreTimeScale
System.Boolean
delayTiming
PlayerLoopTiming
CancelAfterSlim(CancellationTokenSource, TimeSpan, Boolean, PlayerLoopTiming)
public static void CancelAfterSlim(this CancellationTokenSource cts, TimeSpan delayTimeSpan, bool ignoreTimeScale = false, PlayerLoopTiming delayTiming = PlayerLoopTiming.Update)
Parameters
cts
System.Threading.CancellationTokenSource
delayTimeSpan
TimeSpan
ignoreTimeScale
System.Boolean
delayTiming
PlayerLoopTiming
RegisterRaiseCancelOnDestroy(CancellationTokenSource, Component)
public static void RegisterRaiseCancelOnDestroy(this CancellationTokenSource cts, Component component)
Parameters
cts
System.Threading.CancellationTokenSource
component
Component
RegisterRaiseCancelOnDestroy(CancellationTokenSource, GameObject)
public static void RegisterRaiseCancelOnDestroy(this CancellationTokenSource cts, GameObject gameObject)
Parameters
cts
System.Threading.CancellationTokenSource
gameObject
GameObject