projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Since this thing is on the innerwebs I suppose it should have a
[python_utils.git]
/
parallelize.py
diff --git
a/parallelize.py
b/parallelize.py
index f2cfcbb144fbbff5620b4fea081b1493c8cabdcd..77d7649fe956a1542c1a60ce99ca96365ef59ce0 100644
(file)
--- a/
parallelize.py
+++ b/
parallelize.py
@@
-1,5
+1,7
@@
#!/usr/bin/env python3
#!/usr/bin/env python3
+# © Copyright 2021-2022, Scott Gasch
+
"""A decorator to help with dead simple parallelization."""
"""A decorator to help with dead simple parallelization."""
@@
-10,6
+12,8
@@
from enum import Enum
class Method(Enum):
class Method(Enum):
+ """How should we parallelize; by threads, processes or remote workers?"""
+
THREAD = 1
PROCESS = 2
REMOTE = 3
THREAD = 1
PROCESS = 2
REMOTE = 3