C# Класс Corlib.Collections.Concurrent.ProducerConsumerCollectionObservableOptions

Options for converting a ProducerConsumerCollection`1 to an observable sequence
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
ProducerConsumerCollectionObservableOptions ( System.TimeSpan pollInterval, System.TimeSpan timeout, int boundedCapacity, IScheduler scheduler ) : System

Creates a new instance of options

Описание методов

ProducerConsumerCollectionObservableOptions() публичный Метод

Creates a new instance of options
public ProducerConsumerCollectionObservableOptions ( System.TimeSpan pollInterval, System.TimeSpan timeout, int boundedCapacity, IScheduler scheduler ) : System
pollInterval System.TimeSpan null to disable polling, otherwise interval to poll
timeout System.TimeSpan null to complete the sequence if polling is disabled, /// if polling is enabled, items will be taken from the collection until the TryTake /// method returns false, if there is a timeout, the timeout is passed to a /// wrapping the collection
boundedCapacity int only used if timeout has a value, indicating /// the boundedCpacity for the
scheduler IScheduler scheduler to schedule the dequeue for each poll if polling is enabled /// or, to schedule the only an only poll if polling is disabled
Результат System