Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Threading.Tasks.ValueTask< TResult > Struct Template Reference

Classes

class  ValueTaskSourceAsTask
 

Public Member Functions

 ValueTask (Task task)
 
 ValueTask (IValueTaskSource source, short token)
 
override int GetHashCode ()
 
override bool Equals ([NotNullWhen(true)] object? obj)
 
bool Equals (ValueTask other)
 
Task AsTask ()
 
ValueTask Preserve ()
 
ValueTaskAwaiter GetAwaiter ()
 
ConfiguredValueTaskAwaitable ConfigureAwait (bool continueOnCapturedContext)
 
 ValueTask (TResult result)
 
 ValueTask (Task< TResult > task)
 
 ValueTask (IValueTaskSource< TResult > source, short token)
 
override int GetHashCode ()
 
override bool Equals ([NotNullWhen(true)] object? obj)
 
bool Equals (ValueTask< TResult > other)
 
Task< TResultAsTask ()
 
ValueTask< TResultPreserve ()
 
ValueTaskAwaiter< TResultGetAwaiter ()
 
ConfiguredValueTaskAwaitable< TResultConfigureAwait (bool continueOnCapturedContext)
 
override? string ToString ()
 
bool Equals (T? other)
 
bool Equals (T? other)
 

Static Public Member Functions

static ValueTask< TResultFromResult< TResult > (TResult result)
 
static ValueTask FromCanceled (CancellationToken cancellationToken)
 
static ValueTask< TResultFromCanceled< TResult > (CancellationToken cancellationToken)
 
static ValueTask FromException (Exception exception)
 
static ValueTask< TResultFromException< TResult > (Exception exception)
 
static bool operator== (ValueTask left, ValueTask right)
 
static bool operator!= (ValueTask left, ValueTask right)
 
static bool operator== (ValueTask< TResult > left, ValueTask< TResult > right)
 
static bool operator!= (ValueTask< TResult > left, ValueTask< TResult > right)
 

Package Functions

void ThrowIfCompletedUnsuccessfully ()
 

Package Attributes

readonly object _obj
 
readonly short _token
 
readonly bool _continueOnCapturedContext
 
readonly TResult _result
 

Properties

static ValueTask CompletedTask [get]
 
bool IsCompleted [get]
 
bool IsCompletedSuccessfully [get]
 
bool IsFaulted [get]
 
bool IsCanceled [get]
 
TResult Result [get]
 

Private Member Functions

 ValueTask (object obj, short token, bool continueOnCapturedContext)
 
Task GetTaskForValueTaskSource (IValueTaskSource t)
 
 ValueTask (object obj, TResult result, short token, bool continueOnCapturedContext)
 
Task< TResultGetTaskForValueTaskSource (IValueTaskSource< TResult > t)
 

Static Private Attributes

static volatile Task s_canceledTask
 
static volatile Task< TResults_canceledTask
 

Detailed Description

Definition at line 320 of file ValueTask.cs.


The documentation for this struct was generated from the following file: