Skip to content

Commit b9baee0

Browse files
doc fix for as_completed
1 parent 07297cc commit b9baee0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ tinyio.Lock tinyio.TimeoutError
114114
```python
115115
def main():
116116
iterator = yield tinyio.as_completed({coro1, coro2, coro3})
117-
while not iterator.done():
118-
x = yield iterator.get()
117+
for next_coro in iterator:
118+
result = yield next_coro
119119
```
120120

121121
---

0 commit comments

Comments
 (0)