blob: f67962248c9624822167efd35b9d1f15fcdbde22 (
plain)
1
2
3
4
5
6
7
8
9
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
|