made start "non-async" using meta task

This commit is contained in:
2022-03-30 21:51:19 +02:00
parent a72a7cc516
commit 80fc91ec47
6 changed files with 68 additions and 35 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ async def work(_foo, _bar): ...
async def main():
pool = SimpleTaskPool(work, args=('xyz', 420))
await pool.start(5)
pool.start(5)
...
pool.stop(3)
...