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

◆ TrySetException() [2/2]

bool System.Threading.Tasks.Task< TResult >.TrySetException ( object exceptionObject)
inlinepackageinherited

Definition at line 2542 of file Task.cs.

2543 {
2544 bool result = false;
2546 if (AtomicStateUpdate(67108864, 90177536))
2547 {
2550 result = true;
2551 }
2552 return result;
2553 }
ContingentProperties EnsureContingentPropertiesInitialized()
Definition Task.cs:1637
void Finish(bool userDelegateExecute)
Definition Task.cs:1839
void AddException(object exceptionObject)
Definition Task.cs:1740
bool AtomicStateUpdate(int newBits, int illegalBits)
Definition Task.cs:1374

References System.Threading.Tasks.Task< TResult >.AddException(), System.Threading.Tasks.Task< TResult >.AtomicStateUpdate(), System.Threading.Tasks.Task< TResult >.EnsureContingentPropertiesInitialized(), and System.Threading.Tasks.Task< TResult >.Finish().

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