You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asyncwith DeezerGQLClient(arl="your_arl") as client:
322
+
me =await client.get_me()
323
+
324
+
# Or manage lifecycle manually
325
+
client = DeezerGQLClient(arl="your_arl")
326
+
try:
327
+
me =await client.get_me()
328
+
finally:
329
+
await client.close()
323
330
```
324
331
325
-
If no`http_client`is provided, the base client creates (and closes) a throwaway `httpx.AsyncClient` per request. This works but is inefficient for high-volume usage like library syncs.
332
+
An external`http_client`can still be passed for advanced use cases (e.g., sharing a pool across multiple clients), but the caller is then responsible for closing it.
326
333
327
334
### Audiobook ID Checking
328
335
@@ -418,15 +425,16 @@ Use comments only to explain "why", not "what". Reserve inline comments for comp
0 commit comments