Skip to content

Commit cd8c330

Browse files
authored
Update README.md
1 parent 9c1ea09 commit cd8c330

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Suppose you want ot run some CPU bound function in parallel.
2020
Create a `Runner` and call the function in parallel using asyncio's `gather` or `TaskGroup`:
2121
```py
2222
with Runner(workers=5).start() as runner:
23-
await asyncio.gather(runner.run(cpu_bound_function(5), cpu_bound_function(5)))
23+
await asyncio.gather(runner.run(cpu_bound_function, 5), runner.run(cpu_bound_function, 5))
2424
```
2525

2626
### Restrictions

0 commit comments

Comments
 (0)