- add close method to PoolSingleton class again

This commit is contained in:
Wim Pomp
2024-10-22 11:23:16 +02:00
parent 396a1a791d
commit c47650fc30
2 changed files with 5 additions and 1 deletions

View File

@@ -32,6 +32,10 @@ class PoolSingleton:
def __new__(cls, *args, **kwargs):
return select().PoolSingleton(*args, **kwargs)
@staticmethod
def close():
return select().PoolSingleton.close()
class Chunks(Iterable):
""" Yield successive chunks from lists.