await() — netty Function Reference
Architecture documentation for the await() function in DefaultPromise.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a8fc55bf_4c0d_3fde_79cd_c3f808accded["await()"] a0080a71_f091_42e0_8a20_424f0bf9d34a["DefaultPromise"] a8fc55bf_4c0d_3fde_79cd_c3f808accded -->|defined in| a0080a71_f091_42e0_8a20_424f0bf9d34a ad0070c8_415a_ebba_021d_569458f542c4["V()"] ad0070c8_415a_ebba_021d_569458f542c4 -->|calls| a8fc55bf_4c0d_3fde_79cd_c3f808accded 45358ce9_3abf_c0c9_cb94_b21de525f9dc["sync()"] 45358ce9_3abf_c0c9_cb94_b21de525f9dc -->|calls| a8fc55bf_4c0d_3fde_79cd_c3f808accded 3740273d_6083_b014_4154_fce4202c359c["isDone()"] a8fc55bf_4c0d_3fde_79cd_c3f808accded -->|calls| 3740273d_6083_b014_4154_fce4202c359c 60509b5d_40ce_2ffb_3446_bc55883f645e["checkDeadLock()"] a8fc55bf_4c0d_3fde_79cd_c3f808accded -->|calls| 60509b5d_40ce_2ffb_3446_bc55883f645e 840a82ca_e064_c245_c313_71d5cad7b138["incWaiters()"] a8fc55bf_4c0d_3fde_79cd_c3f808accded -->|calls| 840a82ca_e064_c245_c313_71d5cad7b138 eeeb5e2c_469b_65b8_2532_243d417749c2["decWaiters()"] a8fc55bf_4c0d_3fde_79cd_c3f808accded -->|calls| eeeb5e2c_469b_65b8_2532_243d417749c2 93f49b0e_0a57_4979_d91e_7cad339bdb09["await0()"] a8fc55bf_4c0d_3fde_79cd_c3f808accded -->|calls| 93f49b0e_0a57_4979_d91e_7cad339bdb09 style a8fc55bf_4c0d_3fde_79cd_c3f808accded fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/concurrent/DefaultPromise.java lines 252–275
@Override
public Promise<V> await() throws InterruptedException {
if (isDone()) {
return this;
}
if (Thread.interrupted()) {
throw new InterruptedException(toString());
}
checkDeadLock();
synchronized (this) {
while (!isDone()) {
incWaiters();
try {
wait();
} finally {
decWaiters();
}
}
}
return this;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does await() do?
await() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/DefaultPromise.java.
Where is await() defined?
await() is defined in common/src/main/java/io/netty/util/concurrent/DefaultPromise.java at line 252.
What does await() call?
await() calls 5 function(s): await0, checkDeadLock, decWaiters, incWaiters, isDone.
What calls await()?
await() is called by 2 function(s): V, sync.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free