Adds a `start_wait` parameter to `LaunchDarklyProvider`, defaulting to
the LaunchDarkly SDK's five seconds.
Closes
[#55](#55).
- The value is passed to `LDClient(config, start_wait)` and bounds the
whole of initialization once: with a positive value `initialize` reports
the outcome the constructor already waited for rather than waiting
again, so a five second start wait cannot become a ten second wait for
`set_provider_and_wait`.
- Initialization fails when the client did not become ready in time; the
provider keeps reporting status afterward, so a later connection still
makes it ready.
- Zero does not block the constructor at all, and `initialize` then
waits without a deadline for the data source to become valid or to fail
permanently.
- Flips the README feature matrix's Initialization row to supported,
since this is the change that makes it true.
<details>
<summary>Implementation details</summary>
```python
# With a start wait the client constructor has already waited, so the outcome is whatever it is now.
if self.__start_wait <= 0:
ready_event.wait()
```
**Requirements**
- [x] I have added test coverage for new or changed functionality
- [x] I have followed the repository's [pull request submission
guidelines](../blob/main/CONTRIBUTING.md#submitting-pull-requests)
- [x] I have validated my changes against all supported platform
versions
**Related issues**
[#55](#55),
and the matching Java change in
[openfeature-java-server#61](launchdarkly/openfeature-java-server#61).
Related spec change:
[sdk-specs#257](launchdarkly/sdk-specs#257).
**Describe the solution you've provided**
`main` has since merged
[#56](#56),
[#57](#57)
and
[#58](#58);
those are merged into this branch, so `start_wait` composes with the
wrapper information now passed to `LDClient`, and a failed
initialization raises `ProviderNotReadyError` rather than a fatal error.
**Describe alternatives you've considered**
Waiting on the ready event for `start_wait` seconds inside `initialize`
as well: that doubled the effective wait, since the client constructor
had already waited the same amount.
**Additional context**
Testing: `make test` (84 passed) and `make lint`. Tests cover the
default matching the SDK default and initialization failing without
waiting a second time; the timing assertion fails rather than hanging CI
if the double wait comes back.
</details>
Link to Devin session:
https://app.devin.ai/sessions/38a6eaf69fcf41109e136a1d0fe5e899
Open in Devin Desktop:
https://app.devin.ai/desktop/session/38a6eaf69fcf41109e136a1d0fe5e899?variant=devin
Requested by: @kinyoklion
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> <sup>[Cursor Bugbot](https://cursor.com/bugbot) is generating a
summary for commit 69390f7. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>