Skip to content

Commit 11b4ae1

Browse files
committed
Threading
1 parent 81cf865 commit 11b4ae1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2072,7 +2072,7 @@ with lock:
20722072
```python
20732073
<Semaphore> = Semaphore(value=1) # Lock that can be acquired 'value' times.
20742074
<Event> = Event() # Method wait() blocks until set() is called.
2075-
<Barrier> = Barrier(n_times) # Method wait() blocks until it's called n_times.
2075+
<Barrier> = Barrier(n_times) # Method wait() blocks until it's called 'n_times'.
20762076
```
20772077

20782078
### Thread Pool Executor

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,7 @@
18281828

18291829
<div><h3 id="semaphoreeventbarrier">Semaphore, Event, Barrier</h3><pre><code class="python language-python hljs">&lt;Semaphore&gt; = Semaphore(value=<span class="hljs-number">1</span>) <span class="hljs-comment"># Lock that can be acquired 'value' times.</span>
18301830
&lt;Event&gt; = Event() <span class="hljs-comment"># Method wait() blocks until set() is called.</span>
1831-
&lt;Barrier&gt; = Barrier(n_times) <span class="hljs-comment"># Method wait() blocks until it's called n_times.</span>
1831+
&lt;Barrier&gt; = Barrier(n_times) <span class="hljs-comment"># Method wait() blocks until it's called 'n_times'.</span>
18321832
</code></pre></div>
18331833

18341834
<div><h3 id="threadpoolexecutor">Thread Pool Executor</h3><pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> concurrent.futures <span class="hljs-keyword">import</span> ThreadPoolExecutor

0 commit comments

Comments
 (0)