diff --git a/content/blog/pyfutures.md b/content/blog/pyfutures.md index 9a6366c..4be316f 100644 --- a/content/blog/pyfutures.md +++ b/content/blog/pyfutures.md @@ -26,7 +26,7 @@ You can also apply a function to a list or iterables def double(x): return 2 * x with ThreadPoolExecutor() as executor: - future = executor.submit(function_handle, [1, 2, 3]) + future = executor.map(function_handle, [1, 2, 3]) result = future.result() ```