Skip to content

Commit

Permalink
Expose IsEmpty property on the NetMQQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
marian-gheorghe committed Dec 13, 2019
1 parent c56ecd0 commit cfb9820
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/NetMQ/NetMQQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ public event EventHandler<NetMQQueueEventArgs<T>> ReceiveReady
/// </summary>
public int Count => m_queue.Count;

/// <summary>
/// Gets a value that indicates whether the queue is empty.
/// </summary>
public bool IsEmpty => m_queue.IsEmpty;

/// <summary>
/// Try to dequeue an item from the queue. Dequeueing and item is not thread safe.
/// </summary>
Expand Down

0 comments on commit cfb9820

Please sign in to comment.