runExistingTasksFrom() — netty Function Reference
Architecture documentation for the runExistingTasksFrom() function in SingleThreadEventExecutor.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5459d7ae_bd4e_27c5_fc92_8a5ebd983141["runExistingTasksFrom()"] c9189467_acbc_07ea_3a8c_fecfe22ec122["SingleThreadEventExecutor"] 5459d7ae_bd4e_27c5_fc92_8a5ebd983141 -->|defined in| c9189467_acbc_07ea_3a8c_fecfe22ec122 5a39e93d_3c59_adfe_8e2c_fcd0d6bdeea5["runScheduledAndExecutorTasks()"] 5a39e93d_3c59_adfe_8e2c_fcd0d6bdeea5 -->|calls| 5459d7ae_bd4e_27c5_fc92_8a5ebd983141 style 5459d7ae_bd4e_27c5_fc92_8a5ebd983141 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/concurrent/SingleThreadEventExecutor.java lines 501–514
private boolean runExistingTasksFrom(Queue<Runnable> taskQueue) {
Runnable task = pollTaskFrom(taskQueue);
if (task == null) {
return false;
}
int remaining = Math.min(maxPendingTasks, taskQueue.size());
safeExecute(task);
// Use taskQueue.poll() directly rather than pollTaskFrom() since the latter may
// silently consume more than one item from the queue (skips over WAKEUP_TASK instances)
while (remaining-- > 0 && (task = taskQueue.poll()) != null) {
safeExecute(task);
}
return true;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does runExistingTasksFrom() do?
runExistingTasksFrom() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/SingleThreadEventExecutor.java.
Where is runExistingTasksFrom() defined?
runExistingTasksFrom() is defined in common/src/main/java/io/netty/util/concurrent/SingleThreadEventExecutor.java at line 501.
What calls runExistingTasksFrom()?
runExistingTasksFrom() is called by 1 function(s): runScheduledAndExecutorTasks.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free