Skip to content

Commit

Permalink
Add the queue size to the StreamOps.blockingQueue (#1400)
Browse files Browse the repository at this point in the history
  • Loading branch information
manolama authored Jan 3, 2022
1 parent bb7c911 commit 68aa1b7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ object StreamOps extends StrictLogging {

/** Check if the queue is open to take more data. */
def isOpen: Boolean = !completed

/** The approximate number of entries in the queue. */
def size: Int = queue.size()
}

/**
Expand Down

0 comments on commit 68aa1b7

Please sign in to comment.