summaryrefslogtreecommitdiff
path: root/parallelize.py
diff options
context:
space:
mode:
Diffstat (limited to 'parallelize.py')
-rw-r--r--parallelize.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/parallelize.py b/parallelize.py
index 77d7649..6005d42 100644
--- a/parallelize.py
+++ b/parallelize.py
@@ -22,7 +22,7 @@ class Method(Enum):
def parallelize(
_funct: typing.Optional[typing.Callable] = None, *, method: Method = Method.THREAD
) -> typing.Callable:
- """Usage:
+ """Usage::
@parallelize # defaults to thread-mode
def my_function(a, b, c) -> int:
@@ -36,7 +36,7 @@ def parallelize(
def my_other_other_function(g, h) -> int:
...this work will be distributed to a remote machine pool
- This decorator will invoke the wrapped function on:
+ This decorator will invoke the wrapped function on::
Method.THREAD (default): a background thread
Method.PROCESS: a background process