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