diff --git a/README.md b/README.md index 47d39a8..d212b93 100644 --- a/README.md +++ b/README.md @@ -2065,7 +2065,7 @@ with lock: ``` ### Semaphore, Event, Barrier -``` +```python = Semaphore(value=1) # Lock that can be acquired 'value' times. = Event() # Method wait() blocks until set() is called. = Barrier(n_times) # Method wait() blocks until it's called n_times. diff --git a/index.html b/index.html index 5a92f55..b046a2b 100644 --- a/index.html +++ b/index.html @@ -1822,7 +1822,7 @@ lock.release() ... -

Semaphore, Event, Barrier

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

Semaphore, Event, Barrier

<Semaphore> = Semaphore(value=1)     # Lock that can be acquired 'value' times.
 <Event>     = Event()                # Method wait() blocks until set() is called.
 <Barrier>   = Barrier(n_times)       # Method wait() blocks until it's called n_times.