- add close method to PoolSingleton class again
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user