ResourceQueueT Constructor
Creates a new Resource Queue with the specified initial resources and maximum capacity.
Namespace: SnapDB.CollectionsAssembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public ResourceQueue(
Func<T> instance,
int initialCount,
int maximumCount
)
Public Sub New (
instance As Func(Of T),
initialCount As Integer,
maximumCount As Integer
)
public:
ResourceQueue(
Func<T>^ instance,
int initialCount,
int maximumCount
)
SnapDB.Collections.ResourceQueue = function(instance, initialCount, maximumCount);
Parameters
- instance FuncT
- A delegate that will return the necessary queue.
- initialCount Int32
- The initial number of resources to have in the queue.
- maximumCount Int32
- The maximum number of resources the queue can hold.