|
Terraria v1.4.4.9
Terraria source code documentation
|
Public Member Functions | |
| void | Cancel () |
| void | Cancel (bool throwOnFirstException) |
| void | CancelAfter (TimeSpan delay) |
| void | CancelAfter (int millisecondsDelay) |
| bool | TryReset () |
| void | Dispose () |
Static Public Member Functions | |
| static CancellationTokenSource | CreateLinkedTokenSource (CancellationToken token1, CancellationToken token2) |
| static CancellationTokenSource | CreateLinkedTokenSource (CancellationToken token) |
| static CancellationTokenSource | CreateLinkedTokenSource (params CancellationToken[] tokens) |
Protected Member Functions | |
| override void | Dispose (bool disposing) |
Package Functions | |
| Linked1CancellationTokenSource (CancellationToken token1) | |
| CancellationTokenRegistration | Register (Delegate callback, object stateForCallback, SynchronizationContext syncContext, ExecutionContext executionContext) |
Static Package Attributes | |
| static readonly CancellationTokenSource | s_canceledSource |
| static readonly CancellationTokenSource | s_neverCanceledSource = new CancellationTokenSource() |
Properties | |
| bool | IsCancellationRequested [get] |
| bool | IsCancellationCompleted [get] |
| CancellationToken | Token [get] |
| WaitHandle | WaitHandle [get] |
Private Member Functions | |
| void | InitializeWithTimer (uint millisecondsDelay) |
| void | CancelAfter (uint millisecondsDelay) |
| void | ThrowIfDisposed () |
| void | NotifyCancellation (bool throwOnFirstException) |
| void | ExecuteCallbackHandlers (bool throwOnFirstException) |
Static Private Member Functions | |
| static void | TimerCallback (object state) |
| static void | Invoke (Delegate d, object state, CancellationTokenSource source) |
Private Attributes | |
| readonly CancellationTokenRegistration | _reg1 |
| volatile int | _state |
| bool | _disposed |
| volatile TimerQueueTimer | _timer |
| volatile ManualResetEvent | _kernelEvent |
| Registrations | _registrations |
Static Private Attributes | |
| static readonly TimerCallback | s_timerCallback = TimerCallback |
Definition at line 9 of file CancellationTokenSource.cs.