Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ContextMaps to let users create various ContextMaps #2906

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on May 1, 2024

  1. Add ContextMaps to let users create various ContextMaps

    Motivation:
    
    If we plan to use `ContextMap` for more and more use-cases as a
    strictly typed variant of a `Map`, we need to open a way to create
    various versions of the `ContextMap`.
    
    Modifications:
    - Add `ContextMaps` utility class;
    - Add `SingletonContextMap` and `UnmodifiableContextMap`;
    - Move `NoopAsyncContextProvider.NoopContextMap` to `EmptyContextMap`;
    - Move `ConcurrentContextMap` and `CopyOnWriteContextMap` to context-api;
    - Copy `io.servicetalk.concurrent.internal.DefaultContextMap` to
    `io.servicetalk.context.api.DefaultContextMap`;
    - Deprecate `io.servicetalk.concurrent.internal.DefaultContextMap`;
    - Copy `io.servicetalk.concurrent.internal.ContextMapUtils` to
    `io.servicetalk.context.api.ContextMapUtils`;
    - Deprecate `io.servicetalk.concurrent.internal.ContextMapUtils`;
    
    Result:
    
    New public API to create various `ContextMap`s.
    idelpivnitskiy committed May 1, 2024
    Configuration menu
    Copy the full SHA
    b69e976 View commit details
    Browse the repository at this point in the history