In recent Java versions, thread locals are softly deprecated in favor of ScopedValue, which made its stable appearance in Java 25. Would it be possible to optionally have io.grpc.Context store itself in a ScopedValue rather than a thread-local? This would allow Context to work nicely with structured concurrency.
In recent Java versions, thread locals are softly deprecated in favor of
ScopedValue, which made its stable appearance in Java 25. Would it be possible to optionally haveio.grpc.Contextstore itself in aScopedValuerather than a thread-local? This would allowContextto work nicely with structured concurrency.