struct ValueTask
in global :: System . Threading . Tasks
Provides an awaitable result of an asynchronous operation.
public ValueTask( IValueTaskSource source, short token )
Initializes a new instance of the class using the supplied object that represents the operation.
sourceAn object that represents the operation.tokenAn opaque value that is passed through to the
public ValueTask( Task task )
Initializes a new instance of the class using the supplied task that represents the operation.
taskThe task that represents the operation.
public ConfiguredValueTaskAwaitable ConfigureAwait( bool continueOnCapturedContext )
Configures an awaiter for this value.
continueOnCapturedContextto attempt to marshal the continuation back to the captured context; otherwise, .- Returns The configured awaiter.
public bool Equals( object obj )
Determines whether the specified object is equal to the current instance.
objThe object to compare with the current object.- Returns if the specified object is equal to the current object; otherwise, .
public bool Equals( ValueTask other )
Determines whether the specified object is equal to the current object.
otherThe object to compare with the current object.- Returns if the specified object is equal to the current object; otherwise, .
public bool IsCanceled { get; }
Gets a value that indicates whether this object represents a canceled operation.
- Returns if this object represents a canceled operation; otherwise, .
public bool IsCompleted { get; }
Gets a value that indicates whether this object represents a completed operation.
- Returns if this object represents a completed operation; otherwise, .
public bool IsCompletedSuccessfully { get; }
Gets a value that indicates whether this object represents a successfully completed operation.
- Returns if this object represents a successfully completed operation; otherwise, .
public bool IsFaulted { get; }
Gets a value that indicates whether this object represents a failed operation.
- Returns if this object represents a failed operation; otherwise, .
public static bool op_Equality( ValueTask left, ValueTask right )
Compares two values for equality.
leftThe first value to compare.rightThe second value to compare.- Returns if the two values are equal; otherwise, .
public static bool op_Inequality( ValueTask left, ValueTask right )
Determines whether two values are unequal.
leftThe first value to compare.rightThe second value to compare.- Returns if the two values are not equal; otherwise, .
public Type GetType( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public ValueTaskAwaiter GetAwaiter( )
😔 No documentation found.
public Task AsTask( )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public static ValueTask<TResult> FromException( Exception exception )
😔 No documentation found.
public static ValueTask FromException( Exception exception )
😔 No documentation found.
public static ValueTask<TResult> FromCanceled( CancellationToken cancellationToken )
😔 No documentation found.
public static ValueTask FromCanceled( CancellationToken cancellationToken )
😔 No documentation found.
public static ValueTask<TResult> FromResult( TResult result )
😔 No documentation found.
public ValueTask Preserve( )
😔 No documentation found.
public static ValueTask CompletedTask { get; }
😔 No documentation found.