Skip to content

feat: Add setProviderAndWait #30

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

Merged
merged 5 commits into from
Jan 29, 2024
Merged

feat: Add setProviderAndWait #30

merged 5 commits into from
Jan 29, 2024

Conversation

fabriziodemaria
Copy link
Contributor

@fabriziodemaria fabriziodemaria commented Jan 22, 2024

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.

@fabriziodemaria fabriziodemaria force-pushed the set-and-wait branch 2 times, most recently from 4176983 to 1c49908 Compare January 22, 2024 17:15
@fabriziodemaria fabriziodemaria changed the title [WIP] Add setProviderAndWait feat: Add setProviderAndWait Jan 22, 2024
@fabriziodemaria fabriziodemaria force-pushed the set-and-wait branch 2 times, most recently from 072864e to 12ad983 Compare January 22, 2024 17:17
@vahidlazio vahidlazio force-pushed the event-handler branch 7 times, most recently from 61ddf6f to 1efff09 Compare January 23, 2024 17:01
@fabriziodemaria fabriziodemaria force-pushed the set-and-wait branch 2 times, most recently from c7c903b to 8cbdedb Compare January 24, 2024 14:27
Base automatically changed from event-handler to main January 24, 2024 15:22
@fabriziodemaria fabriziodemaria force-pushed the set-and-wait branch 3 times, most recently from 90a74aa to 6732b91 Compare January 25, 2024 08:23
@fabriziodemaria fabriziodemaria marked this pull request as ready for review January 25, 2024 08:24
@fabriziodemaria fabriziodemaria force-pushed the set-and-wait branch 3 times, most recently from b9a3a67 to 7b118f1 Compare January 26, 2024 10:44
Signed-off-by: Fabrizio Demaria <[email protected]>

Signed-off-by: Fabrizio Demaria <[email protected]>
@fabriziodemaria fabriziodemaria force-pushed the set-and-wait branch 2 times, most recently from 0f8dfd3 to e691284 Compare January 26, 2024 15:37
@fabriziodemaria fabriziodemaria merged commit 3ce6b8d into main Jan 29, 2024
@fabriziodemaria fabriziodemaria deleted the set-and-wait branch January 29, 2024 16:31
fabriziodemaria pushed a commit that referenced this pull request Feb 2, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.1.0](0.0.2...0.1.0)
(2024-02-02)


### ⚠ BREAKING CHANGES

* Add EventHandler + Combine
([#29](#29))

### 🐛 Bug Fixes

* setProviderAndWait does not hang on ProviderError
([#35](#35))
([5661080](5661080))


### ✨ New Features

* Add ProviderNotReady event
([#36](#36))
([389f117](389f117))
* Add setProviderAndWait
([#30](#30))
([3ce6b8d](3ce6b8d))


### 🧹 Chore

* **deps:** update actions/checkout action to v4
([#18](#18))
([eb0cd56](eb0cd56))
* **deps:** update dependency apple/swift-format to v509
([#21](#21))
([5f12304](5f12304))
* Smaller cleanup in tests
([#33](#33))
([053dabc](053dabc))


### 📚 Documentation

* add sections for logging, named providers, and shutdown
([#31](#31))
([dc5876c](dc5876c))
* Fix Installation documentation
([#27](#27))
([5ddf45d](5ddf45d)),
closes [#25](#25)
* Update README to latest template
([#28](#28))
([dbdd502](dbdd502))
* Update README.md
([#19](#19))
([ec599ff](ec599ff))


### 🔄 Refactoring

* Add EventHandler + Combine
([#29](#29))
([dd122f7](dd122f7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

4 participants