Show / Hide Table of Contents

    Class TaskExtensions

    Provides a set of extension methods for Task<TResult> objects.

    Предоставляет набор методов расширения для объектов Task<TResult>.

    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: Platform.Threading
    Assembly: Platform.Threading.dll
    Syntax
    public static class TaskExtensions

    Methods

    | Improve this Doc View Source

    AwaitResult<TReturn>(Task<TReturn>)

    Waits for completion of the asynchronous Task<TResult> and returns its result.

    Ожидает завершения асинхронной Task<TResult> и возвращает её результат.

    Declaration
    public static TReturn AwaitResult<TReturn>(this Task<TReturn> task)
    Parameters
    Type Name Description
    Task<TReturn> task

    The asynchronous Task<TResult>.

    Ассинхронная Task<TResult>.

    Returns
    Type Description
    TReturn

    The result of completed Task<TResult>.

    Результат завершённой Task<TResult>.

    Type Parameters
    Name Description
    TReturn

    The return value type.

    Тип возвращаемого значения.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX