CancellationTokenExtensions Class
Assembly: cs.temp.dll.dll
public static class CancellationTokenExtensions
Inheritance
System.Object →
CancellationTokenExtensions
Members
Methods
Methods
RegisterWithoutCaptureExecutionContext(CancellationToken, Action)
public static CancellationTokenRegistration RegisterWithoutCaptureExecutionContext(this CancellationToken cancellationToken, Action callback)
Parameters
cancellationToken
System.Threading.CancellationToken
callback
System.Action
Returns
- System.Threading.CancellationTokenRegistration
RegisterWithoutCaptureExecutionContext(CancellationToken, Action<Object>, Object)
public static CancellationTokenRegistration RegisterWithoutCaptureExecutionContext(this CancellationToken cancellationToken, Action<object> callback, object state)
Parameters
cancellationToken
System.Threading.CancellationToken
callback
System.Action<System.Object>
state
System.Object
Returns
- System.Threading.CancellationTokenRegistration
ToUniTask(CancellationToken)
public static (UniTask, CancellationTokenRegistration) ToUniTask(this CancellationToken cts)
Parameters
cts
System.Threading.CancellationToken
Returns
- System.ValueTuple<UniTask, System.Threading.CancellationTokenRegistration>