Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a warning about SingleThreadEventExecutor.pendingTasks() operation

  • Loading branch information...
commit da174f4290278c390aa815e3decf0e6ff90d41d0 1 parent 0efebd5
Norman Maurer authored
3  common/src/main/java/io/netty/util/concurrent/SingleThreadEventExecutor.java
View
@@ -262,6 +262,9 @@ protected boolean hasTasks() {
/**
* Return the number of tasks that are pending for processing.
+ *
+ * <strong>Be aware that this operation may be expensive as it depends on the internal implementation of the
+ * SingleThreadEventExecutor. So use it was care!</strong>
*/
public final int pendingTasks() {
return taskQueue.size();
Please sign in to comment.
Something went wrong with that request. Please try again.