Home / Function/ removeListener0() — netty Function Reference

removeListener0() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  77d21fc2_ffb5_fbc1_4402_8026e326f186["removeListener0()"]
  a0080a71_f091_42e0_8a20_424f0bf9d34a["DefaultPromise"]
  77d21fc2_ffb5_fbc1_4402_8026e326f186 -->|defined in| a0080a71_f091_42e0_8a20_424f0bf9d34a
  af548b4b_71d8_f294_9de6_e59b86eb09b7["removeListener()"]
  af548b4b_71d8_f294_9de6_e59b86eb09b7 -->|calls| 77d21fc2_ffb5_fbc1_4402_8026e326f186
  471ba2c6_b5b3_c6ba_e96b_4a13040fc2bc["removeListeners()"]
  471ba2c6_b5b3_c6ba_e96b_4a13040fc2bc -->|calls| 77d21fc2_ffb5_fbc1_4402_8026e326f186
  style 77d21fc2_ffb5_fbc1_4402_8026e326f186 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/concurrent/DefaultPromise.java lines 626–636

    private void removeListener0(GenericFutureListener<? extends Future<? super V>> toRemove) {
        if (listener == toRemove) {
            listener = null;
        } else if (listeners != null) {
            listeners.remove(toRemove);
            // Removal is rare, no need for compaction
            if (listeners.size() == 0) {
                listeners = null;
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does removeListener0() do?
removeListener0() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/DefaultPromise.java.
Where is removeListener0() defined?
removeListener0() is defined in common/src/main/java/io/netty/util/concurrent/DefaultPromise.java at line 626.
What calls removeListener0()?
removeListener0() is called by 2 function(s): removeListener, removeListeners.

Analyze Your Own Codebase

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

Try Supermodel Free