mirror of
https://github.com/kennethreitz/background.git
synced 2026-06-05 23:10:18 +00:00
Merge pull request #5 from walkerlala/patch-1
remove one results.append()
This commit is contained in:
@@ -27,7 +27,6 @@ def run(f, *args, **kwargs):
|
||||
def task(f):
|
||||
def do_task(*args, **kwargs):
|
||||
result = run(f, *args, **kwargs)
|
||||
results.append(result)
|
||||
|
||||
for cb in callbacks:
|
||||
result.add_done_callback(cb)
|
||||
|
||||
Reference in New Issue
Block a user