Minor change for naming consistency

This commit is contained in:
Cian-H
2021-05-25 13:11:56 +01:00
parent 3ef247fc70
commit 4a399590e1
4 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env python3
# *_* coding: utf-8 *_*
from threading import Thread
from functools import wraps
# Wrapper for running a function in a parallel thread
def run_in_thread(func):
@wraps(func)
def wrapper(*args, **kwargs):
thread = Thread(target=func, args=args, kwargs=kwargs)
thread.start()
return wrapper