Add short docstring to until_closed method

This commit is contained in:
Daniil Fajnberg 2022-05-05 08:46:27 +02:00
parent dae883446a
commit 85672bddeb
Signed by: daniil-berg
GPG Key ID: BE187C50903BEE97

View File

@ -553,6 +553,12 @@ class BaseTaskPool:
self._closed.set() self._closed.set()
async def until_closed(self) -> bool: 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() return await self._closed.wait()