Skip to content

Instantly share code, notes, and snippets.

@63phc
Created January 22, 2020 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 63phc/4a1bc9c816491a2569fd3d630aab2678 to your computer and use it in GitHub Desktop.
Save 63phc/4a1bc9c816491a2569fd3d630aab2678 to your computer and use it in GitHub Desktop.
def threaded_async(f):
def wrapper(*args, **kwargs):
thr = Thread(target=f, args=args, kwargs=kwargs)
thr.start()
return wrapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment