826 B
826 B
Plan: Add async examples to the wiki usage guide
The docs/usage.md guide currently only shows sync usage in its per-section examples. The user wants every major example to also demonstrate the equivalent async pattern with AsyncConduitClient and await.
Approach
- Keep the existing sync examples intact.
- Add matching async examples immediately after each sync snippet (Authentication, Gateway keys/SMS/media/torrents/wiki/compute/DNS, timeouts/retries, error handling, free-form bodies).
- Make the pattern consistent across all snippets:
- sync:
with ConduitClient(...) as client: - async:
async with AsyncConduitClient(...) as client:andawait client...
- sync:
- Ensure required imports (
asyncio,AsyncConduitClient) are shown where needed. - Run
ruffandpytestto confirm nothing broke.