mirror of https://github.com/grpc/grpc-java.git
When shutting down the Netty event loop, we have already guaranteed that all users of it are no longer running. Doing a shutdownGracefully is just delaying graceful JVM termination by two seconds. This is very noticeable for short-lived processes, like our integration tests. We would actually also prefer to shutdown quickly and get a RejectedExecutionException for any newly queued tasks, because that would be a legitimate bug. shutdown() is deprecated, thus we do shutdownGracefully with a timeout of 0. |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle | ||