struct ValueTask<TResult>

in global :: System . Threading . Tasks

Provides a value type that wraps a and a , only one of which is used.

  • TResult The result.

public ConfiguredValueTaskAwaitable<TResult> ConfigureAwait( bool continueOnCapturedContext )

Configures an awaiter for this value.

  • continueOnCapturedContext to 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 object.

  • obj The 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 TResult Result { get; }

Gets the result.

  • Returns The result.

public ValueTask<TResult>( TResult result )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public ValueTaskAwaiter<TResult> GetAwaiter( )

😔 No documentation found.

public ValueTask<TResult>( IValueTaskSource<TResult> source, short token )

😔 No documentation found.

public ValueTask<TResult> Preserve( )

😔 No documentation found.

public Task<TResult> AsTask( )

😔 No documentation found.

public static bool op_Inequality( ValueTask<TResult> left, ValueTask<TResult> right )

😔 No documentation found.

public static bool op_Equality( ValueTask<TResult> left, ValueTask<TResult> right )

😔 No documentation found.

public bool Equals( ValueTask<TResult> other )

😔 No documentation found.

public ValueTask<TResult>( Task<TResult> task )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.