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
Firestore: Async callbacks on_snapshot #3
Comments
@crwilcox I'll have to defer to your knowledge here |
I'm looking forward to this. I'm using multiple snapshot listeners in my project where basically all operations are asynchronous, so this would be really handy |
With google-api-core beginning to add AsyncIO support since version 1.18.0 it'd be awesome to get async support for firestore. |
Any updates on this? I've noted that you've added some |
@mr-bjerre we did add a good amount of async surface to this client, though I don't believe we have made any changes to watch specifically. We had made #131 to track adding async watch support. |
Closing this as a duplicate of #131 (even though this came first). |
Problem
I am writing a bunch of python applications that listens to news on firestore using
on_snapshot
. Some of the callbacks have IO-bound tasks which blocks other callbacks and builds up a queue.Here's a mockup demonstrating the issue
Solution
I'm no expert on this matter but I'm guessing that
async
is the right path. It would be great if something like this would be possible** Alternatives **
I've also considered using
multithreading
but I thinkasync
is much preferred.The text was updated successfully, but these errors were encountered: