From e054045b8c11216d454d086261aeefbf60fa6b3c Mon Sep 17 00:00:00 2001 From: James Aylett Date: Mon, 23 Feb 2026 19:16:12 +0000 Subject: [PATCH] Use the session in async subs example client.subscribe() is not async safe, which is the point of constructing the session instead. --- docs/usage/subscriptions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage/subscriptions.rst b/docs/usage/subscriptions.rst index 549054b9..59e732da 100644 --- a/docs/usage/subscriptions.rst +++ b/docs/usage/subscriptions.rst @@ -69,7 +69,7 @@ Async async with client as session: # Then get the results using 'async for' - async for result in client.subscribe(query): + async for result in session.subscribe(query): print (result)