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

Why does the variation api have to be async? #125

Description

@davidlivingrooms

Hi, this is more of a question. I noticed that other SDKs are synchronous when calling .variation() including the client side javascript library. Is there a functional reason the node version has to be async?

I would like to be able to use the node client like this instead.

client.on('ready',function(){console.log("It's now safe to request feature flags");varshowFeature=client.variation("YOUR_FEATURE_KEY",false);if(showFeature){
...
}else{
...
}});

Having thevariation API be async and forcing usage of a callback and promise makes it harder to adopt in my opinion.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions