Closed
Description
Describe the bug
When calling RemoteConfig.instance twice both of these calls go into the if-statement and try to retrieve the instance.
Then in here both calls to get RemoteConfig.instance try to complete with the instance, but the second one fails as the first one already completed the Completer.
To Reproduce
Steps to reproduce the behavior:
- Install and configure Remote Config
- Get RemoteConfig.instance twice in parallel
- See that the second call will fail with Bad state: Future already completed
Expected behavior
Both calles to RemoteConfig.instance
complete without an error
Additional context
I'll put together an MVCE