summaryrefslogtreecommitdiff
path: root/futures/thread.py
diff options
context:
space:
mode:
Diffstat (limited to 'futures/thread.py')
-rw-r--r--futures/thread.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/futures/thread.py b/futures/thread.py
index c1f15ae..9e3275f 100644
--- a/futures/thread.py
+++ b/futures/thread.py
@@ -73,8 +73,8 @@ class ThreadPoolExecutor(Executor):
futures = []
event_sink = ThreadEventSink()
- for call in calls:
- f = Future()
+ for index, call in enumerate(calls):
+ f = Future(index)
w = _WorkItem(call, f, event_sink)
self._work_queue.put(w)
futures.append(f)