CancellationTokenSourceExtensions Class
Assembly: cs.temp.dll.dll
public static class CancellationTokenSourceExtensions
Inheritance
System.Object →
CancellationTokenSourceExtensions
Members
Methods
Methods
CancelAfterSlim(CancellationTokenSource, Int32, DelayType, PlayerLoopTiming)
public static IDisposable CancelAfterSlim(this CancellationTokenSource cts, int millisecondsDelay, DelayType delayType = DelayType.DeltaTime, PlayerLoopTiming delayTiming = PlayerLoopTiming.Update)
Parameters
cts
System.Threading.CancellationTokenSource
millisecondsDelay
System.Int32
delayType
DelayType
delayTiming
PlayerLoopTiming
CancelAfterSlim(CancellationTokenSource, TimeSpan, DelayType, PlayerLoopTiming)
public static IDisposable CancelAfterSlim(this CancellationTokenSource cts, TimeSpan delayTimeSpan, DelayType delayType = DelayType.DeltaTime, PlayerLoopTiming delayTiming = PlayerLoopTiming.Update)
Parameters
cts
System.Threading.CancellationTokenSource
delayTimeSpan
TimeSpan
delayType
DelayType
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