Interface IReadOnlyQueue<T>
A queue that raises an event when an item is added.
Namespace: VivoxUnity
Assembly: VivoxUnity.dll
Syntax
public interface IReadOnlyQueue<T>
Type Parameters
Name | Description |
---|---|
T | The type of item in the queue |
Properties
Count
The count of items in the queue.
Declaration
int Count { get; }
Property Value
Type | Description |
---|---|
int |
Methods
Clear()
Remove all the items from the queue.
Declaration
void Clear()
Dequeue()
Remove an item from the queue.
Declaration
T Dequeue()
Returns
Type | Description |
---|---|
T | The item. Null if the queue is empty. |
Peek()
Look at the head of the queue without dequeuing.
Declaration
T Peek()
Returns
Type | Description |
---|---|
T | The next item in the queue. Null if the queue is empty. |
Events
AfterItemAdded
The event that is raised when an item is added.
Declaration
event EventHandler<QueueItemAddedEventArgs<T>> AfterItemAdded
Event Type
Type | Description |
---|---|
EventHandler<QueueItemAddedEventArgs<T>> |