MCPcopy Index your code
hub / github.com/grpc/grpc-java / run

Method run

api/src/context/java/io/grpc/Context.java:533–540  ·  view source on GitHub ↗

Immediately run a Runnable with this context as the #current context. @param r Runnable to run.

(Runnable r)

Source from the content-addressed store, hash-verified

531 * @param r {@link Runnable} to run.
532 */
533 public void run(Runnable r) {
534 Context previous = attach();
535 try {
536 r.run();
537 } finally {
538 detach(previous);
539 }
540 }
541
542 /**
543 * Immediately call a {@link Callable} with this context as the {@link #current} context.

Callers

nothing calls this directly

Calls 3

attachMethod · 0.95
detachMethod · 0.95
runMethod · 0.65

Tested by

no test coverage detected