MCPcopy Create free account
hub / github.com/grpc/grpc-java / doExecute

Method doExecute

core/src/main/java/io/grpc/internal/Http2Ping.java:179–185  ·  view source on GitHub ↗

Executes the given runnable. This prevents exceptions from propagating so that an exception thrown by one callback won't prevent subsequent callbacks from being executed.

(Executor executor, Runnable runnable)

Source from the content-addressed store, hash-verified

177 * thrown by one callback won't prevent subsequent callbacks from being executed.
178 */
179 private static void doExecute(Executor executor, Runnable runnable) {
180 try {
181 executor.execute(runnable);
182 } catch (Throwable th) {
183 log.log(Level.SEVERE, "Failed to execute PingCallback", th);
184 }
185 }
186
187 /**
188 * Returns a runnable that, when run, invokes the given callback, providing the given round-trip

Callers 3

addCallbackMethod · 0.95
completeMethod · 0.95
notifyFailedMethod · 0.95

Calls 2

executeMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected