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

◆ IsValidLocationForInlining

bool System.Threading.Tasks.AwaitTaskContinuation.IsValidLocationForInlining
staticgetpackageinherited

Definition at line 24 of file AwaitTaskContinuation.cs.

25 {
26 get
27 {
28 SynchronizationContext current = SynchronizationContext.Current;
29 if (current != null && current.GetType() != typeof(SynchronizationContext))
30 {
31 return false;
32 }
33 TaskScheduler internalCurrent = TaskScheduler.InternalCurrent;
34 if (internalCurrent != null)
35 {
36 return internalCurrent == TaskScheduler.Default;
37 }
38 return true;
39 }
40 }

Referenced by System.Threading.Tasks.AwaitTaskContinuation.Run(), System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(), and System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction().