diff --git a/README.md b/README.md index da23e4b..e2de229 100644 --- a/README.md +++ b/README.md @@ -2115,7 +2115,7 @@ from concurrent.futures import ThreadPoolExecutor, as_completed #### Or: ```python with : # Enters the block by calling acquire(), - ... # and exits it with release(). + ... # and exits it with release(), even on error. ``` ### Semaphore, Event, Barrier diff --git a/index.html b/index.html index 9ceb918..47b47b5 100644 --- a/index.html +++ b/index.html @@ -1751,7 +1751,7 @@ CompletedProcess(args=['bc', Or:
with <lock>:                                   # Enters the block by calling acquire(),
-    ...                                        # and exits it with release().
+    ...                                        # and exits it with release(), even on error.
 

Semaphore, Event, Barrier

<Semaphore> = Semaphore(value=1)               # Lock that can be acquired by 'value' threads.