- 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): def __new__(cls, *args, **kwargs):
return select().PoolSingleton(*args, **kwargs) return select().PoolSingleton(*args, **kwargs)
@staticmethod
def close():
return select().PoolSingleton.close()
class Chunks(Iterable): class Chunks(Iterable):
""" Yield successive chunks from lists. """ Yield successive chunks from lists.

View File

@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "parfor" name = "parfor"
version = "2024.10.2" version = "2024.10.3"
description = "A package to mimic the use of parfor as done in Matlab." description = "A package to mimic the use of parfor as done in Matlab."
authors = ["Wim Pomp <wimpomp@gmail.com>"] authors = ["Wim Pomp <wimpomp@gmail.com>"]
license = "GPLv3" license = "GPLv3"