Skip to content

Commit f2dc14c

Browse files
Merge pull request #788 from dacky179/feature/PendingElementsOfParallelQueue
Pending elements in the ParallelOperationsQueue
2 parents f0e605b + 4440445 commit f2dc14c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Moryx/Threading/ParallelOperationsQueue.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ public class ParallelOperationsQueue<TElement>
4141
/// </summary>
4242
public IModuleLogger ErrorLogger { get; }
4343

44+
/// <summary>
45+
/// Provide the number of unprocessed elements in the queue
46+
/// </summary>
47+
public int PendingElements => _pendingElements;
48+
4449
/// <summary>
4550
/// Create a new <see cref="Threading.ParallelOperations.EventDecoupler{TEventArgs}"/> to decouple a single listener from an event
4651
/// </summary>

0 commit comments

Comments
 (0)