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)
Returns
- System.IDisposable
CancelAfterSlim(CancellationTokenSource, TimeSpan, DelayType, PlayerLoopTiming)
public static IDisposable CancelAfterSlim(this CancellationTokenSource cts, TimeSpan delayTimeSpan, DelayType delayType = DelayType.DeltaTime, PlayerLoopTiming delayTiming = PlayerLoopTiming.Update)
Returns
- System.IDisposable
RegisterRaiseCancelOnDestroy(CancellationTokenSource, Component)
public static void RegisterRaiseCancelOnDestroy(this CancellationTokenSource cts, Component component)
Parameters
cts
CancellationTokenSource
component
Component
RegisterRaiseCancelOnDestroy(CancellationTokenSource, GameObject)
public static void RegisterRaiseCancelOnDestroy(this CancellationTokenSource cts, GameObject gameObject)
Parameters
cts
CancellationTokenSource
gameObject
GameObject