Skip to content

fix(analytics): allow capability to offload reportExposure to async thread#85

Merged
tylerjroach merged 1 commit into
masterfrom
fix/report-exposure-executor
May 28, 2026
Merged

fix(analytics): allow capability to offload reportExposure to async thread#85
tylerjroach merged 1 commit into
masterfrom
fix/report-exposure-executor

Conversation

@tylerjroach
Copy link
Copy Markdown
Contributor

Allow passing an executor to report exposure for a feature flag getVariant call.

This Java SDK doesn't really have an established threading pattern, leaving it up to the caller to handle the threading model.

This change attempts to still leave the caller in control of the threading model. Its not optimal that the default behavior at the moment is still that local getVariant calls will still be slow if reportExposure is enabled, because the http result must complete before the method returns. This behavior should still be further discussed.

@tylerjroach tylerjroach requested review from a team and rahul-mixpanel May 27, 2026 14:46
Copy link
Copy Markdown

@efahk efahk left a comment

Choose a reason for hiding this comment

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

lgtm!

@tylerjroach tylerjroach merged commit 882279d into master May 28, 2026
12 checks passed
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.

3 participants