Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Undo()

void System.Threading.AsyncFlowControl.Undo ( )
inline

Definition at line 14 of file AsyncFlowControl.cs.

15 {
16 if (_thread == null)
17 {
18 throw new InvalidOperationException(SR.InvalidOperation_CannotUseAFCMultiple);
19 }
20 if (Thread.CurrentThread != _thread)
21 {
22 throw new InvalidOperationException(SR.InvalidOperation_CannotUseAFCOtherThread);
23 }
24 if (!ExecutionContext.IsFlowSuppressed())
25 {
26 throw new InvalidOperationException(SR.InvalidOperation_AsyncFlowCtrlCtxMismatch);
27 }
28 _thread = null;
29 ExecutionContext.RestoreFlow();
30 }

References System.Threading.AsyncFlowControl._thread, System.Threading.Thread.CurrentThread, System.SR.InvalidOperation_AsyncFlowCtrlCtxMismatch, System.SR.InvalidOperation_CannotUseAFCMultiple, System.SR.InvalidOperation_CannotUseAFCOtherThread, System.Threading.ExecutionContext.IsFlowSuppressed(), and System.Threading.ExecutionContext.RestoreFlow().

Referenced by System.Threading.AsyncFlowControl.Dispose().