sleepZero() — netty Function Reference
Architecture documentation for the sleepZero() function in DefaultMockTickerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6ac2d952_ea1e_74ec_47c5_bd33f9c485df["sleepZero()"] 15c7b7ca_db5e_f063_6092_a6f83d0d82e5["DefaultMockTickerTest"] 6ac2d952_ea1e_74ec_47c5_bd33f9c485df -->|defined in| 15c7b7ca_db5e_f063_6092_a6f83d0d82e5 style 6ac2d952_ea1e_74ec_47c5_bd33f9c485df fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/concurrent/DefaultMockTickerTest.java lines 140–147
@Test
void sleepZero() throws InterruptedException {
final MockTicker ticker = Ticker.newMockTicker();
// All sleep calls with 0 delay should return immediately.
ticker.sleep(0, TimeUnit.SECONDS);
ticker.sleepMillis(0);
assertEquals(0, ticker.nanoTime());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does sleepZero() do?
sleepZero() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/DefaultMockTickerTest.java.
Where is sleepZero() defined?
sleepZero() is defined in common/src/test/java/io/netty/util/concurrent/DefaultMockTickerTest.java at line 140.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free