use of io.netty.util.concurrent.GlobalEventExecutor in project intellij-community by JetBrains.
the class NettyUtil method awaitQuiescenceOfGlobalEventExecutor.
@TestOnly
public static void awaitQuiescenceOfGlobalEventExecutor(long timeout, @NotNull TimeUnit unit) {
try {
@NotNull GlobalEventExecutor executor = GlobalEventExecutor.INSTANCE;
executor.awaitInactivity(timeout, unit);
} catch (InterruptedException ignored) {
} catch (IllegalStateException ignored) {
// thread did not start
}
}
Aggregations