Show / Hide Table of Contents

    Class ConcurrentQueueExtensions

    Provides a set of extension methods for ConcurrentQueue<T> objects.

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

    Inheritance
    Object
    ConcurrentQueueExtensions
    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 ConcurrentQueueExtensions

    Methods

    | Improve this Doc View Source

    AwaitAll(ConcurrentQueue<Task>)

    Suspends evaluation of the method until all asynchronous operations in the queue finish.

    Приостановляет выполнение метода до завершения всех асинхронных операций в очереди.

    Declaration
    public static Task AwaitAll(this ConcurrentQueue<Task> queue)
    Parameters
    Type Name Description
    ConcurrentQueue<Task> queue

    The queue of asynchronous operations.

    Очередь асинхронных операций.

    Returns
    Type Description
    Task

    An asynchronous operation representation.

    Представление асинхронной операции.

    | Improve this Doc View Source

    AwaitOne(ConcurrentQueue<Task>)

    Suspends evaluation of the method until the first asynchronous operation in the queue finishes.

    Приостанавливает выполнение метода до завершения первой асинхронной операции в очереди.

    Declaration
    public static Task AwaitOne(this ConcurrentQueue<Task> queue)
    Parameters
    Type Name Description
    ConcurrentQueue<Task> queue

    The queue of asynchronous operations.

    Очередь асинхронных операций.

    Returns
    Type Description
    Task

    An asynchronous operation representation.

    Представление асинхронной операции.

    | Improve this Doc View Source

    RunAndPush(ConcurrentQueue<Task>, Action)

    Adds an Action as runned Task to the end of the ConcurrentQueue<T>.

    Добавляет Action как запущенную Task в конец ConcurrentQueue<T>.

    Declaration
    public static void RunAndPush(this ConcurrentQueue<Task> queue, Action action)
    Parameters
    Type Name Description
    ConcurrentQueue<Task> queue

    The queue of asynchronous operations.

    Очередь асинхронных операций.

    Action action

    The Action delegate.

    Делагат Action.

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