mirror of
https://github.com/kennethreitz/background.git
synced 2026-06-05 23:10:18 +00:00
Fix to pass args and kwargs through to function
This commit is contained in:
+2
-2
@@ -24,8 +24,8 @@ def run(f, *args, **kwargs):
|
||||
return f
|
||||
|
||||
|
||||
def task(f, *args, **kwargs):
|
||||
def do_task():
|
||||
def task(f):
|
||||
def do_task(*args, **kwargs):
|
||||
result = run(f, *args, **kwargs)
|
||||
results.append(result)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user