Search Results for

    Show / Hide Table of Contents

    Class ValueTask<TResult>

    Inheritance
    System.Object
    ValueTask<TResult>
    Implements
    System.IEquatable<ValueTask<TResult>>
    Namespace: System.Threading.Tasks
    Assembly: IronZip.dll
    Syntax
    public sealed class ValueTask<TResult> : ValueType
    Type Parameters
    Name Description
    TResult

    Constructors

    ValueTask(TResult)

    Declaration
    public ValueTask(TResult result)
    Parameters
    Type Name Description
    TResult result

    ValueTask(IValueTaskSource<TResult>, Int16)

    Declaration
    public ValueTask(IValueTaskSource<TResult> source, short token)
    Parameters
    Type Name Description
    IValueTaskSource<TResult> source
    System.Int16 token

    ValueTask(Task<TResult>)

    Declaration
    public ValueTask(Task<TResult> task)
    Parameters
    Type Name Description
    System.Threading.Tasks.Task<TResult> task

    Properties

    IsCanceled

    Declaration
    public bool IsCanceled { get; }
    Property Value
    Type Description
    System.Boolean

    IsCompleted

    Declaration
    public bool IsCompleted { get; }
    Property Value
    Type Description
    System.Boolean

    IsCompletedSuccessfully

    Declaration
    public bool IsCompletedSuccessfully { get; }
    Property Value
    Type Description
    System.Boolean

    IsFaulted

    Declaration
    public bool IsFaulted { get; }
    Property Value
    Type Description
    System.Boolean

    Result

    Declaration
    public TResult Result { get; }
    Property Value
    Type Description
    TResult

    Methods

    AsTask()

    Declaration
    public Task<TResult> AsTask()
    Returns
    Type Description
    System.Threading.Tasks.Task<TResult>

    ConfigureAwait(Boolean)

    Declaration
    public ConfiguredValueTaskAwaitable<TResult> ConfigureAwait(bool continueOnCapturedContext)
    Parameters
    Type Name Description
    System.Boolean continueOnCapturedContext
    Returns
    Type Description
    ConfiguredValueTaskAwaitable<TResult>

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean

    Equals(ValueTask<TResult>)

    Declaration
    public bool Equals(ValueTask<TResult> other)
    Parameters
    Type Name Description
    ValueTask<TResult> other
    Returns
    Type Description
    System.Boolean

    GetAwaiter()

    Declaration
    public ValueTaskAwaiter<TResult> GetAwaiter()
    Returns
    Type Description
    ValueTaskAwaiter<TResult>

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    Preserve()

    Declaration
    public ValueTask<TResult> Preserve()
    Returns
    Type Description
    ValueTask<TResult>

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    Operators

    Equality(ValueTask<TResult>, ValueTask<TResult>)

    Declaration
    public static bool operator ==(ValueTask<TResult> left, ValueTask<TResult> right)
    Parameters
    Type Name Description
    ValueTask<TResult> left
    ValueTask<TResult> right
    Returns
    Type Description
    System.Boolean

    Inequality(ValueTask<TResult>, ValueTask<TResult>)

    Declaration
    public static bool operator !=(ValueTask<TResult> left, ValueTask<TResult> right)
    Parameters
    Type Name Description
    ValueTask<TResult> left
    ValueTask<TResult> right
    Returns
    Type Description
    System.Boolean

    Implements

    System.IEquatable<>
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet
    Want to deploy IronZIP to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronZIP free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.