Skip to content

EG-4749: Implementation of the AsyncUnleashClient - #439

Merged
ppicom merged 5 commits into
eg-4747-private-eventsfrom
eg-4749-init-client
Sep 28, 2026
Merged

ppicom merged 5 commits into
eg-4747-private-eventsfrom
eg-4749-init-client

Conversation

@ppicom

@ppicom ppicom commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Heads up! 🎉 This class is the culmination of the refactor. It puts together all the classes we've introduced during the refactor into our brand new Async client.

Two things to take into account:

  • is_enabled and get_variant are not corroutines and it's on purpose. Our value proposition is that your flags evaluate fast, so no async there.
  • fetch_toggles is not supported (yet?) in this client. Coming soon in a follow-up pull request.
  • Bootstrapping is not supported yet. Slapping the BootrstapConnector into this bad boy felt like a bad design decision. Is it really a connector if it does something different from a connector? Bootstrapping doesn't feel like something that should have start() and stop(). Therefore, I've delayed this decision to a follow-up PR

Well, those were three things... awkward!


Stack created with GitHub Stacks CLI • Give Feedback 💬

@ppicom
ppicom added this pull request to stack #440 September 28, 2026 10:53

if not self._config.disable_metrics:
self._metrics.start()
self._scheduler.start()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This badboy is literally only for the metrics right? Can we call it that? I spent a few minutes trying to figure out why we didn't want features to be resolved if metrics was off - partially because I'm dumb but also partially because if you've worked with SDKs before you expect a scheduler to be closely related to feature poll cycle.

Not a biggie either way

@sighphyre sighphyre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Amazing, feels like hitting a finish line!

@ppicom
ppicom force-pushed the eg-4749-init-client branch from 8026175 to b8ca33b Compare September 28, 2026 13:21
@ppicom
ppicom merged commit e17e615 into main Sep 28, 2026
8 checks passed
@ppicom
ppicom deleted the eg-4749-init-client branch September 28, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants