open-feature / open-feature/go-sdk

Have the Shutdown and Init functions take a context.Context parameter and return an error.

Open
#415 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

`Shutdown` and `Initialize` provider functions must accept a context.More specifically, new versions of them should accept a `context.Context` and return an error, while keeping the old versions so as not to create a breaking change for providers.

The global API `Shutdown` function should also accept a context, which is passed to the new provider `Shutdown` functions mentioned above. This change is breaking; there will be no `context-less` `Shutdown` variant on the global API object.

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.