Complete second logic pass, remove underscore from package name
This commit is contained in:
11
reolinkapi/util.py
Normal file
11
reolinkapi/util.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from threading import Thread
|
||||
|
||||
|
||||
def threaded(fn):
|
||||
def wrapper(*args, **kwargs):
|
||||
thread = Thread(target=fn, args=args, kwargs=kwargs)
|
||||
thread.daemon = True
|
||||
thread.start()
|
||||
return thread
|
||||
|
||||
return wrapper
|
||||
Reference in New Issue
Block a user