open-feature / open-feature/go-sdk

Be consistent in blocking provider API function (async param vs `...AndWait` name)

Open
#443 0 comments 0 reactions 0 assignees View on GitHub
v2
Dominant language
Go
Stars
249
Forks
61
Avg merge
2d 10h
Merged PRs (30d)
20

Description

We should improve the consistency of the function for setting a provider and blocking. In some cases we have an `async` param, and in others we use an `...AndWait` function name.

## Background:

> I dislike that we mix `...AndWait` and `aysnc bool` in our public API - it's inconsistent - but this isn't something you introduced, it already existed elsewhere. I think in v2 we should go for one or the other (the spec doesn't dictate function naming so we have flexibility here).

_Originally posted by @toddbaert in [#442](https://github.com/open-feature/go-sdk/pull/442/files#r2461023401)_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.