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

Method createTimeout

ZezeJava/ZezeJava/src/main/java/Zeze/Util/Task.java:180–182  ·  view source on GitHub ↗
(long timeout)

Source from the content-addressed store, hash-verified

178
179 // 注意必须使用try包装,确保create和close配对
180 public static @NotNull ThreadDiagnosable.Timeout createTimeout(long timeout) {
181 return new ThreadDiagnosable.Timeout(timeout);
182 }
183
184 // 注意必须使用try包装,确保create和close配对
185 public static @NotNull ThreadDiagnosable.Critical enterCritical(boolean critical) {

Callers 6

testMethod · 0.95
runUnsafeMethod · 0.95
executeUnsafeMethod · 0.95
scheduleUnsafeMethod · 0.95
runRpcResponseUnsafeMethod · 0.95

Calls

no outgoing calls

Tested by 1

testMethod · 0.76