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

Method current

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

Return the context associated with the current scope, will never return null. Will never return CancellableContext even if one is attached, instead a Context is returned with the same properties and lifetime. This is to avoid code stealing the ability to cancel arbitraril

()

Source from the content-addressed store, hash-verified

169 * code stealing the ability to cancel arbitrarily.
170 */
171 public static Context current() {
172 Context current = storage().current();
173 if (current == null) {
174 return ROOT;
175 }
176 return current;
177 }
178
179 final CancellableContext cancellableAncestor;
180 final Node<Key<?>, Object> keyValueEntries;

Callers 15

answerMethod · 0.95
onReadyMethod · 0.95
startMethod · 0.95
startCallMethod · 0.95
interceptCallMethod · 0.95
checkContextMethod · 0.95
onReadyMethod · 0.95

Calls 1

storageMethod · 0.95

Tested by 15

answerMethod · 0.76
onReadyMethod · 0.76
startMethod · 0.76
startCallMethod · 0.76
interceptCallMethod · 0.76
checkContextMethod · 0.76
onReadyMethod · 0.76