diff --git a/parfor/__init__.py b/parfor/__init__.py index 01d6ee3..59b4188 100644 --- a/parfor/__init__.py +++ b/parfor/__init__.py @@ -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. diff --git a/pyproject.toml b/pyproject.toml index c54910c..1b101e8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "parfor" -version = "2024.10.2" +version = "2024.10.3" description = "A package to mimic the use of parfor as done in Matlab." authors = ["Wim Pomp "] license = "GPLv3"