Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Thread-local methods for setting user #4

Closed
wants to merge 1 commit into from

Conversation

jkodumal
Copy link
Contributor

In some cases, it may be inconvenient to set the user context at the same time as the feature flag request is made. This approach allows developers to set the user context wherever it's convenient, and then request feature flags without having to pass in a user each time.

@jkodumal
Copy link
Contributor Author

We probably need to explicitly document the potential limitations of this approach-- the main one being that any work done in a new thread will lose the user context.

@pkaeding
Copy link
Contributor

lgtm

@jkodumal
Copy link
Contributor Author

I've been thinking that this is unnecessary magic. Declining.

@jkodumal jkodumal closed this Mar 11, 2015
@jkodumal jkodumal deleted the thread-local branch March 11, 2015 17:42
drichelson added a commit that referenced this pull request Apr 11, 2017
Add proxy authentication support
eli-darkly added a commit that referenced this pull request Apr 30, 2020
eli-darkly added a commit that referenced this pull request Apr 30, 2020
eli-darkly added a commit that referenced this pull request May 14, 2020
…ates-intf-1

(#4) rename DataStoreUpdates to DataSourceUpdates
LaunchDarklyCI pushed a commit that referenced this pull request Jun 2, 2020
LaunchDarklyReleaseBot pushed a commit that referenced this pull request Dec 7, 2022
…-context

(#4) simplify usage of ClientContext with component factories, remove BasicConfiguration
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants