Click or drag to resize

IChannelT Interface

A channel is a communication pipe with fixed capacity. Attempts to read from an empty channel will block, as will attempting to write to a full channel.

Namespace: Demo3D.EventQueue
Assembly: Demo3D.EventQueue (in Demo3D.EventQueue.dll) Version: 19.01.00
Syntax
C#
public interface IChannel<T>

Type Parameters

T
The type of object that this channel manages a queue of.

The IChannelT type exposes the following members.

Properties
 NameDescription
Public propertyCapacity The maximum number of elements that can be written to this channel before one must be read.
Public propertyCount How many elements are in the channel waiting to be read.
Public propertyIsEmpty Is the channel empty.
Public propertyIsFull Has the channel reached its capacity and is full.
Public propertyItems Items that are currently in the channel waiting to be read
Top
Methods
 NameDescription
Public methodPeek Peek at the next object from the channel.
Public methodRead Read an object from the channel.
Public methodWrite Write an object to the channel
Top
See Also