Home / Function/ run() — netty Function Reference

run() — netty Function Reference

Architecture documentation for the run() function in SingleThreadEventLoopTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ce99034a_40be_fe0b_e0f6_a7bd14ba3e7c["run()"]
  f1682eac_61f1_6cfd_adf6_5eaf34290752["SingleThreadEventLoopB"]
  ce99034a_40be_fe0b_e0f6_a7bd14ba3e7c -->|defined in| f1682eac_61f1_6cfd_adf6_5eaf34290752
  b79014df_fa4d_f5ee_0fee_b9e3906bd3e9["run()"]
  ce99034a_40be_fe0b_e0f6_a7bd14ba3e7c -->|calls| b79014df_fa4d_f5ee_0fee_b9e3906bd3e9
  5ead3360_fc9b_55d7_7351_92e4ac8f3087["runTasks0()"]
  ce99034a_40be_fe0b_e0f6_a7bd14ba3e7c -->|calls| 5ead3360_fc9b_55d7_7351_92e4ac8f3087
  style ce99034a_40be_fe0b_e0f6_a7bd14ba3e7c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/SingleThreadEventLoopTest.java lines 551–566

        @Override
        protected void run() {
            for (;;) {
                try {
                    Thread.sleep(TimeUnit.NANOSECONDS.toMillis(delayNanos(System.nanoTime())));
                } catch (InterruptedException e) {
                    // Waken up by interruptThread()
                }

                runTasks0();

                if (confirmShutdown()) {
                    break;
                }
            }
        }

Domain

Subdomains

Frequently Asked Questions

What does run() do?
run() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/SingleThreadEventLoopTest.java.
Where is run() defined?
run() is defined in transport/src/test/java/io/netty/channel/SingleThreadEventLoopTest.java at line 551.
What does run() call?
run() calls 2 function(s): run, runTasks0.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free