Skip to content

Context ScopedValue backend #12768

@benjaminp

Description

@benjaminp

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions