From 55e10056e7c053c2f72d343a7e3215ab542c5020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 2 Oct 2019 21:49:22 +0200 Subject: [PATCH] Threading --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2c06fc2..0c6ee21 100644 --- a/README.md +++ b/README.md @@ -2030,7 +2030,7 @@ with lock: ... ``` -### Thread Pool +### Thread Pool Executor ```python from concurrent.futures import ThreadPoolExecutor with ThreadPoolExecutor(max_workers=None) as executor: diff --git a/index.html b/index.html index dc59afe..7af620c 100644 --- a/index.html +++ b/index.html @@ -1786,7 +1786,7 @@ lock.release() ... -

Thread Pool

from concurrent.futures import ThreadPoolExecutor
+

Thread Pool Executor

from concurrent.futures import ThreadPoolExecutor
 with ThreadPoolExecutor(max_workers=None) as executor:
     <iter>   = executor.map(lambda x: x + 1, range(3))         # (1, 2, 3)
     <iter>   = executor.map(lambda x, y: x + y, 'abc', '123')  # ('a1', 'b2', 'c3')