generated from daniil-berg/boilerplate-py
Add short docstring to `until_closed` method
This commit is contained in:
parent
dae883446a
commit
85672bddeb
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue