aboutsummaryrefslogtreecommitdiffstats
path: root/src/join.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/join.py')
-rw-r--r--src/join.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/join.py b/src/join.py
index a873bf4..a79d32c 100644
--- a/src/join.py
+++ b/src/join.py
@@ -223,3 +223,14 @@ def concurrently(*fs):
for t in ts:
t.join()
+
+
+def joinmethod(f):
+ '''
+ Make a fragment of signal an instance method rather than a static method
+
+ @param f:(self, *..., **...)→¿R? The static method
+ @return f:(self, *..., **...)→¿R? The method made into a instance method
+ '''
+ return lambda self, *args, **kwargs : f(self, *args, **kwargs)
+