generated from daniil-berg/boilerplate-py
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
72e380cd77
|
|||
85672bddeb
|
@ -22,7 +22,7 @@ copyright = '2022 Daniil Fajnberg'
|
||||
author = 'Daniil Fajnberg'
|
||||
|
||||
# The full version, including alpha/beta/rc tags
|
||||
release = '1.1.0'
|
||||
release = '1.1.1'
|
||||
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
@ -1,6 +1,6 @@
|
||||
[metadata]
|
||||
name = asyncio-taskpool
|
||||
version = 1.1.0
|
||||
version = 1.1.1
|
||||
author = Daniil Fajnberg
|
||||
author_email = mail@daniil.fajnberg.de
|
||||
description = Dynamically manage pools of asyncio tasks
|
||||
|
@ -553,6 +553,12 @@ class BaseTaskPool:
|
||||
self._closed.set()
|
||||
|
||||
async def until_closed(self) -> bool:
|
||||
"""
|
||||
Waits until the pool has been closed. (This method itself does **not** close the pool, but blocks until then.)
|
||||
|
||||
Returns:
|
||||
`True` once the pool is closed.
|
||||
"""
|
||||
return await self._closed.wait()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user