stub: enable throwing rejected execution exception on ThreadlessExecutor shutdown (#10555)

This commit is contained in:
yifeizhuang 2023-09-12 13:41:15 -07:00 committed by GitHub
parent 923ac60416
commit 5f480de2ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -58,8 +58,8 @@ public final class ClientCalls {
@VisibleForTesting @VisibleForTesting
static boolean rejectRunnableOnExecutor = static boolean rejectRunnableOnExecutor =
!Strings.isNullOrEmpty(System.getenv("GRPC_CLIENT_CALL_REJECT_RUNNABLE")) Strings.isNullOrEmpty(System.getenv("GRPC_CLIENT_CALL_REJECT_RUNNABLE"))
&& Boolean.parseBoolean(System.getenv("GRPC_CLIENT_CALL_REJECT_RUNNABLE")); || Boolean.parseBoolean(System.getenv("GRPC_CLIENT_CALL_REJECT_RUNNABLE"));
// Prevent instantiation // Prevent instantiation
private ClientCalls() {} private ClientCalls() {}