GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Auto-port 4.2: SingleThreadEventExecutor: document Throwable safety c… · netty/netty@71b61e9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • common/src/main/java/io/netty/util/concurrent
    • SingleThreadEventExecutor.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎common/src/main/java/io/netty/util/concurrent/SingleThreadEventExecutor.java‎

Copy file name to clipboardExpand all lines: common/src/main/java/io/netty/util/concurrent/SingleThreadEventExecutor.java
+10-1Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,16 @@ protected boolean isSuspensionSupported() {
690690
}
691691

692692
/**
693-
* Run the tasks in the {@link #taskQueue}
693+
* Runs the task-processing loop until {@link #confirmShutdown()} returns {@code true}.
694+
*
695+
* <p>Implementations <strong>must not let a {@link Throwable} thrown by a task escape this
696+
* method</strong>: any uncaught {@link Throwable} terminates the executor (logged at {@code WARN}
697+
* and surfaced via {@link #terminationFuture()}), at which point every {@code Channel}
698+
* registered with this executor stops processing I/O and new task submissions are rejected.
699+
* The supplied helpers - {@link #runAllTasks()}, {@link #runAllTasks(long)}, and
700+
* {@link #safeExecute(Runnable)} - catch {@code Throwable} for you; custom loops built on
701+
* {@link #pollTask()} or {@link #takeTask()} are responsible for wrapping each task
702+
* invocation accordingly.
694703
*/
695704
protected abstract void run();
696705

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.