mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-05-20 06:46:16 +00:00
Corrected typo
This commit is contained in:
parent
c5f1d9e7a5
commit
0a9c91a92f
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ You can also apply a function to a list or iterables
|
||||||
def double(x):
|
def double(x):
|
||||||
return 2 * x
|
return 2 * x
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
future = executor.submit(function_handle, [1, 2, 3])
|
future = executor.map(function_handle, [1, 2, 3])
|
||||||
result = future.result()
|
result = future.result()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue