Skip to content

Conversation

@Toubat
Copy link
Contributor

@Toubat Toubat commented Oct 4, 2024

Allows developer to async iterate on query subscription:

client = ConvexClient('https://example-xxx-xxx.convex.cloud') qs = client.subscribe("messages:latestMessage") async for part in qs: print(part)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Toubat Toubat changed the title Add Async Iterator to Query Subscription Add Async Iterator Support to Query Subscription Oct 4, 2024
@Toubat
Copy link
Contributor Author

Toubat commented Oct 31, 2024

Hi @thomasballinger! Just checking in to see if there’s any update on the status of this PR. Thanks!

@thomasballinger
Copy link
Collaborator

Hey @Toubat, sorry for the delay here! No concerns here, @anjanbharadwaj even wrote something like this when he was implementing this and I pulled it just to start the API off smaller.

Since this is pretty stable but we're still in 0.6.0, no concerns, let's see how it goes.

@thomasballinger
Copy link
Collaborator

@Toubat I'll we'll get a release out by next week!

@thomasballinger
Copy link
Collaborator

@Toubat this is in 76fb9aa, will close when we get a release out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants