Add a warning about SingleThreadEventExecutor.pendingTasks() operation
This commit is contained in:
parent
0efebd5a82
commit
da174f4290
@ -262,6 +262,9 @@ public abstract class SingleThreadEventExecutor extends AbstractEventExecutor {
|
||||
|
||||
/**
|
||||
* 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();
|
||||
|
Loading…
Reference in New Issue
Block a user