Commit ad4e2b6
committed
fix: add __aiter__ to AsyncCommandHandle for async iteration support
The sync CommandHandle supports `for stdout, stderr, pty in handle:`
via __iter__, but AsyncCommandHandle lacks __aiter__, preventing
`async for stdout, stderr, pty in handle:` usage.
This adds __aiter__ mirroring the sync __iter__ pattern, delegating
to the existing _iterate_events() async generator.
Related to #1034
AI Disclosure: This commit was authored by Claude Opus 4.6 (Anthropic),
operated by Maxwell Calkin (@MaxwellCalkin).1 parent d289772 commit ad4e2b6
1 file changed
Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
102 | 110 | | |
103 | 111 | | |
104 | 112 | | |
| |||
0 commit comments