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

Method detach

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

Reverse an attach(), restoring the previous context and exiting the current scope. This context should be the same context that was previously #attach attached. The provided replacement should be what was returned by the same #attach attach() call. If an {@code attach()

(Context toAttach)

Source from the content-addressed store, hash-verified

446 * compromise this error-detecting mechanism.
447 */
448 public void detach(Context toAttach) {
449 checkNotNull(toAttach, "toAttach");
450 storage().detach(this, toAttach);
451 }
452
453 // Visible for testing
454 boolean isCurrent() {

Calls 3

checkNotNullMethod · 0.95
storageMethod · 0.95
detachMethod · 0.65