aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/decorators.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-11-10 18:29:53 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-11-10 18:29:53 +0100
commit50ce677513a06e98a48e236ff008d2015a2c6484 (patch)
tree1f9edcfb9629ba9544fdab38a1a262a911c1c033 /pyaggr3g470r/decorators.py
parentRemoved code related to QR Code generation. (diff)
downloadnewspipe-50ce677513a06e98a48e236ff008d2015a2c6484.tar.gz
newspipe-50ce677513a06e98a48e236ff008d2015a2c6484.tar.bz2
newspipe-50ce677513a06e98a48e236ff008d2015a2c6484.zip
Email notification.
Diffstat (limited to 'pyaggr3g470r/decorators.py')
-rw-r--r--pyaggr3g470r/decorators.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/pyaggr3g470r/decorators.py b/pyaggr3g470r/decorators.py
new file mode 100644
index 00000000..f6796224
--- /dev/null
+++ b/pyaggr3g470r/decorators.py
@@ -0,0 +1,10 @@
+#! /usr/bin/env python
+#-*- coding: utf-8 -*-
+
+from threading import Thread
+
+def async(f):
+ def wrapper(*args, **kwargs):
+ thr = Thread(target = f, args = args, kwargs = kwargs)
+ thr.start()
+ return wrapper
bgstack15