Compare commits

..

2 Commits

Author SHA1 Message Date
72e380cd77 Version increment 2022-05-06 18:57:45 +02:00
85672bddeb Add short docstring to until_closed method 2022-05-05 08:46:27 +02:00
3 changed files with 8 additions and 2 deletions

View File

@ -22,7 +22,7 @@ copyright = '2022 Daniil Fajnberg'
author = 'Daniil Fajnberg' author = 'Daniil Fajnberg'
# The full version, including alpha/beta/rc tags # The full version, including alpha/beta/rc tags
release = '1.1.0' release = '1.1.1'
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------

View File

@ -1,6 +1,6 @@
[metadata] [metadata]
name = asyncio-taskpool name = asyncio-taskpool
version = 1.1.0 version = 1.1.1
author = Daniil Fajnberg author = Daniil Fajnberg
author_email = mail@daniil.fajnberg.de author_email = mail@daniil.fajnberg.de
description = Dynamically manage pools of asyncio tasks description = Dynamically manage pools of asyncio tasks

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()