Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 182c086

Browse files
committed
Threading
1 parent 9f3a103 commit 182c086

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
@@ -2015,7 +2015,7 @@ thread.start()
20152015
thread.join() # Waits for thread to finish.
20162016
```
20172017
* **Use `'kwargs=<dict>'` to pass keyword arguments to the function.**
2018-
* **Use `'daemon=True'` or the program will not be able to exit while the thread is alive.**
2018+
* **Use `'daemon=True'`, or the program will not be able to exit while the thread is alive.**
20192019

20202020
### Lock
20212021
```python

index.html

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

17781778
<ul>
17791779
<li><strong>Use <code class="python hljs"><span class="hljs-string">'kwargs=&lt;dict&gt;'</span></code> to pass keyword arguments to the function.</strong></li>
1780-
<li><strong>Use <code class="python hljs"><span class="hljs-string">'daemon=True'</span></code> or the program will not be able to exit while the thread is alive.</strong></li>
1780+
<li><strong>Use <code class="python hljs"><span class="hljs-string">'daemon=True'</span></code>, or the program will not be able to exit while the thread is alive.</strong></li>
17811781
</ul>
17821782
<div><h3 id="lock">Lock</h3><pre><code class="python language-python hljs">lock = RLock()
17831783
lock.acquire() <span class="hljs-comment"># Waits for lock to be available.</span>

0 commit comments

Comments
 (0)