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

WIP: feat/async #10

Closed
wants to merge 1 commit into from
Closed

Conversation

AlexsJones
Copy link
Member

No description provided.

Signed-off-by: AlexsJones <[email protected]>
fn add_hooks<T>(&self, hooks: T)
where
T: hooks::Hooks;
fn set_evaluation_context(&mut self, eval_ctx: evaluation::EvaluationContext);
fn evaluation_context(&self) -> evaluation::EvaluationContext;
async fn connect(&self);
Copy link
Member

Choose a reason for hiding this comment

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

Just validating, this is the initialize functionality as per open-feature/spec#179 right?

pub trait Client<C>
where
C: FeatureProvider,
C: FeatureProvider<C>,
Copy link
Member

Choose a reason for hiding this comment

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

I'm just a rust newbie, but this looks like a recursive generic to me. The C in Client<C> is a FeatureProvider. That seems fine with me... But the generic argument to the feature provider is also a C? That part confuses me.

@sheepduke
Copy link
Contributor

Closing due to #15 being merged.

@sheepduke sheepduke closed this Sep 7, 2023
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