-
Notifications
You must be signed in to change notification settings - Fork 46
Description
Is your feature request related to a problem? Please describe.
As far as I can tell, this SDK won't work with asyncio or asgi services due to the use of threading locks and queue.queue. This is preventing us from using it across all of our newer services.
Describe the solution you'd like
I'd like to see an async-first implementation where the launch darkly task is running in the background on the same event loop.
Describe alternatives you've considered
I'd also consider using the existing threaded mechanism, but provide async functions that don't rely on locks and the synchronous queue to request features when necessary.
I've considered wrapping the ld sdk in another thread and connecting it with async tasks using an asyncio.queue.
I've considered switching to a different feature flag provider.
Additional context
Is it possible I'm missing a different library? I was shocked to see that there was no asyncio first class citizen in the documentation in 2021, but maybe it hasn't been publicized yet.