mirror of
https://github.com/kennethreitz/background.git
synced 2026-06-05 23:10:18 +00:00
remove one results.append()
why two duplicate results.appeend() and, what is that `results' used for
This commit is contained in:
@@ -27,7 +27,6 @@ def run(f, *args, **kwargs):
|
||||
def task(f, *args, **kwargs):
|
||||
def do_task():
|
||||
result = run(f, *args, **kwargs)
|
||||
results.append(result)
|
||||
|
||||
for cb in callbacks:
|
||||
result.add_done_callback(cb)
|
||||
|
||||
Reference in New Issue
Block a user