Home / Function/ safeExecute() — netty Function Reference

safeExecute() — netty Function Reference

Architecture documentation for the safeExecute() function in DefaultPromise.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  6b17dbfa_0dba_6f1a_183b_cac1eee894d9["safeExecute()"]
  a0080a71_f091_42e0_8a20_424f0bf9d34a["DefaultPromise"]
  6b17dbfa_0dba_6f1a_183b_cac1eee894d9 -->|defined in| a0080a71_f091_42e0_8a20_424f0bf9d34a
  00513e87_934e_6633_22ee_a4fb405c640f["notifyListeners()"]
  00513e87_934e_6633_22ee_a4fb405c640f -->|calls| 6b17dbfa_0dba_6f1a_183b_cac1eee894d9
  14ab6e09_d248_4939_59da_38dde9034740["notifyListenerWithStackOverFlowProtection()"]
  14ab6e09_d248_4939_59da_38dde9034740 -->|calls| 6b17dbfa_0dba_6f1a_183b_cac1eee894d9
  1e633494_b539_e770_5553_1036e16a38a3["notifyProgressiveListeners()"]
  1e633494_b539_e770_5553_1036e16a38a3 -->|calls| 6b17dbfa_0dba_6f1a_183b_cac1eee894d9
  style 6b17dbfa_0dba_6f1a_183b_cac1eee894d9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/concurrent/DefaultPromise.java lines 877–883

    private static void safeExecute(EventExecutor executor, Runnable task) {
        try {
            executor.execute(task);
        } catch (Throwable t) {
            rejectedExecutionLogger.error("Failed to submit a listener notification task. Event loop shut down?", t);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does safeExecute() do?
safeExecute() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/DefaultPromise.java.
Where is safeExecute() defined?
safeExecute() is defined in common/src/main/java/io/netty/util/concurrent/DefaultPromise.java at line 877.
What calls safeExecute()?
safeExecute() is called by 3 function(s): notifyListenerWithStackOverFlowProtection, notifyListeners, notifyProgressiveListeners.

Analyze Your Own Codebase

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

Try Supermodel Free