Commit 627eec7
Add asyncio async file I/O with open_file, AsyncFile, wrap_file, and Path
Adds thread-delegated async file I/O to asyncio, following proven
Trio/anyio patterns. open_file() and AsyncFile wrap synchronous file
objects with async methods via asyncio.to_thread(). Path wraps
pathlib.Path with async I/O methods and sync property passthrough.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 72eca2a commit 627eec7
3 files changed
Lines changed: 1018 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
0 commit comments