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

◆ TrySetResult() [2/4]

bool System.Threading.Tasks.Task< TResult >.TrySetResult ( )
inlinepackageinherited

Definition at line 2526 of file Task.cs.

2527 {
2528 if (AtomicStateUpdate(83886080, 90177536))
2529 {
2530 ContingentProperties contingentProperties = m_contingentProperties;
2531 if (contingentProperties != null)
2532 {
2534 contingentProperties.SetCompleted();
2535 }
2537 return true;
2538 }
2539 return false;
2540 }
ContingentProperties m_contingentProperties
Definition Task.cs:964
void NotifyParentIfPotentiallyAttachedTask()
Definition Task.cs:1944
bool AtomicStateUpdate(int newBits, int illegalBits)
Definition Task.cs:1374

References System.Threading.Tasks.Task< TResult >.AtomicStateUpdate(), System.Threading.Tasks.Task< TResult >.FinishContinuations(), System.Threading.Tasks.Task< TResult >.m_contingentProperties, and System.Threading.Tasks.Task< TResult >.NotifyParentIfPotentiallyAttachedTask().

Referenced by System.Threading.Tasks.TaskFactory< TResult >.FromAsyncTrimPromise< TInstance >.Complete(), System.Threading.Tasks.Task< TResult >.DelayPromise.CompleteTimedOut(), System.Threading.Tasks.Task< TResult >.DangerousSetResult(), System.Threading.Tasks.Task< TResult >.WhenAllPromise< T >.Invoke(), System.Threading.Tasks.Task< TResult >.WhenAllPromise< T >.Invoke(), and System.Threading.Tasks.UnwrapPromise< TResult >.TrySetFromTask().