From 50ce677513a06e98a48e236ff008d2015a2c6484 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 10 Nov 2013 18:29:53 +0100 Subject: Email notification. --- pyaggr3g470r/decorators.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 pyaggr3g470r/decorators.py (limited to 'pyaggr3g470r/decorators.py') 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 -- cgit