Skip to content

Instantly share code, notes, and snippets.

@drx
Created November 17, 2011 01:54
Show Gist options
  • Save drx/1372144 to your computer and use it in GitHub Desktop.
Save drx/1372144 to your computer and use it in GitHub Desktop.
async decorator
def async(func):
import threading
def inner(*args, **kwargs):
thread = threading.Thread(target=func, args=args, kwargs=kwargs)
thread.start()
return inner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment