Search Results for

    Show / Hide Table of Contents

    Class TaskExtensions

    Provides method for configure the Task continuation.

    Inheritance
    object
    TaskExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Framework.Threading
    Assembly: Evergine.Framework.dll
    Syntax
    public static class TaskExtensions

    Methods

    ConfigureEvergineAwait(Task, EvergineTaskContinueOn)

    Configures the awaiter used to await this Task.

    Declaration
    public static EvergineConfiguredAwaiter ConfigureEvergineAwait(this Task task, EvergineTaskContinueOn continueOn = EvergineTaskContinueOn.Default)
    Parameters
    Type Name Description
    Task task

    The task to be awaited.

    EvergineTaskContinueOn continueOn

    Desired behavior to await this task.

    Returns
    Type Description
    EvergineConfiguredAwaiter

    The instance to be awaited.

    ConfigureEvergineAwait<T>(Task<T>, EvergineTaskContinueOn)

    Configures the awaiter used to await this Task<TResult>.

    Declaration
    public static EvergineConfiguredAwaiter<T> ConfigureEvergineAwait<T>(this Task<T> task, EvergineTaskContinueOn continueOn = EvergineTaskContinueOn.Default)
    Parameters
    Type Name Description
    Task<T> task

    The task to be awaited.

    EvergineTaskContinueOn continueOn

    Desired behavior to await this task.

    Returns
    Type Description
    EvergineConfiguredAwaiter<T>

    The instance to be awaited.

    Type Parameters
    Name Description
    T

    The task result type.

    In This Article
    Back to top
    Generated by DocFX