From c47650fc306c6debc6501a589d8f627cf1e183d9 Mon Sep 17 00:00:00 2001 From: Wim Pomp Date: Tue, 22 Oct 2024 11:23:16 +0200 Subject: [PATCH] - add close method to PoolSingleton class again --- parfor/__init__.py | 4 ++++ pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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"