open-feature / swift-sdk

Swift implementation of the OpenFeature SDK for iOS clients
https://openfeature.dev
Apache License 2.0
17 stars 2 forks source link

feat: Add setProviderAndWait #30

Closed fabriziodemaria closed 9 months ago

fabriziodemaria commented 9 months ago

Adds setProviderAndWait extension function, exposed by this library as a user-facing API (documentation also updated).

The application can now use async/await to wait for the Provider to be ready, before reading flags. The older alternative (still available) is for the application to call setProvider and listen for .ready event manually.