C# Class Corlib.Collections.Concurrent.ProducerConsumerCollectionObservableOptions

Options for converting a ProducerConsumerCollection`1 to an observable sequence
Mostra file Open project: GeorgeTsiokos/corlib Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
ProducerConsumerCollectionObservableOptions ( System.TimeSpan pollInterval, System.TimeSpan timeout, int boundedCapacity, IScheduler scheduler ) : System

Creates a new instance of options

Method Details

ProducerConsumerCollectionObservableOptions() public method

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
return System