PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Utils.ConcurrentCollectionExtensions Class Reference

Provides some common functionality for concurrent collections. More...

Static Public Member Functions

static void Clear< T > (this ConcurrentQueue< T > queue)
 Clears the queue.
static void Clear< T > (this ConcurrentBag< T > bag)
 Clears the bag.

Detailed Description

Provides some common functionality for concurrent collections.

  • some of this functionality is only required for net462 as dotnet already contains them

Member Function Documentation

◆ Clear< T >() [1/2]

void PeanutButter.Utils.ConcurrentCollectionExtensions.Clear< T > ( this ConcurrentBag< T > bag)
static

Clears the bag.

Parameters
bag
Template Parameters
T

◆ Clear< T >() [2/2]

void PeanutButter.Utils.ConcurrentCollectionExtensions.Clear< T > ( this ConcurrentQueue< T > queue)
static

Clears the queue.

Parameters
queue
Template Parameters
T

The documentation for this class was generated from the following file:
  • source/Utils/PeanutButter.Utils/ConcurrentCollectionExtensions.cs