MCPcopy Create free account
hub / github.com/e2wugui/zeze / await

Method await

ZezeJava/ZezeJava/src/main/java/Zeze/Raft/Raft.java:130–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128 }
129
130 public void await() {
131 try {
132// var t = System.currentTimeMillis();
133// if (t - lockTime > 500) {
134// logger.warn("--- lock time too long: {}", t - lockTime, new Exception());
135// }
136 condition.await();
137 } catch (InterruptedException e) {
138 Task.forceThrow(e);
139 }
140 }
141
142 public boolean await(long time) {
143 try {

Callers 1

waitLeaderReadyMethod · 0.95

Calls 2

forceThrowMethod · 0.95
awaitMethod · 0.65

Tested by

no test coverage detected