Skip to content

Conversation

@karthiknadig
Copy link
Member

Fixes #262

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request enhances the documentation for the Locator trait's configure method by providing detailed explanations and a practical example of how to implement configuration storage in locators.

Changes:

  • Expanded documentation for configure method to explain the design rationale behind using &self instead of &mut self
  • Added comprehensive example showing how to use interior mutability pattern with Mutex<T> for storing configuration
  • Clarified the threading model where locators are shared via Arc<dyn Locator>

@karthiknadig karthiknadig self-assigned this Jan 21, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@karthiknadig karthiknadig marked this pull request as ready for review January 21, 2026 16:58
@karthiknadig karthiknadig enabled auto-merge (squash) January 21, 2026 16:58
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 21, 2026
@karthiknadig karthiknadig merged commit 28be1e6 into main Jan 21, 2026
31 checks passed
@karthiknadig karthiknadig deleted the issue-262 branch January 21, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Locator::configure should take self by &mut

3 participants