Skip to content

easyextensionscollectionsconcurrent LimitedConcurrentQueueT

BigMakCode edited this page Aug 5, 2024 · 1 revision

LimitedConcurrentQueue<T> Public class

Description

Provides a thread-safe first in-first out (FIFO) collection with a limit.

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph EasyExtensions.Collections.Concurrent
  EasyExtensions.Collections.Concurrent.LimitedConcurrentQueue_1[[LimitedConcurrentQueue< T >]]

  end
  subgraph System.Collections.Concurrent
System.Collections.Concurrent.ConcurrentQueue_1[[ConcurrentQueue]]
  end
System.Collections.Concurrent.ConcurrentQueue_1 --> EasyExtensions.Collections.Concurrent.LimitedConcurrentQueue_1
Loading

Members

Methods

Public methods

Returns Name
void Enqueue(T item)

Details

Summary

Provides a thread-safe first in-first out (FIFO) collection with a limit.

Generic types

Type Description Constraints
T The type of the elements contained in the queue.

Inheritance

  • ConcurrentQueue<T>

Constructors

LimitedConcurrentQueue [1/2]

public LimitedConcurrentQueue(int limit)
Arguments
Type Name Description
int limit Queue limit.
Summary

Creates a new instance of the LimitedConcurrentQueue<T> class with the specified limit.

LimitedConcurrentQueue [2/2]

public LimitedConcurrentQueue(int limit, IEnumerable<T> collection)
Arguments
Type Name Description
int limit
IEnumerable<T> collection

Methods

Enqueue

public void Enqueue(T item)
Arguments
Type Name Description
T item

Generated with ModularDoc

Clone this wiki locally