diff --git a/README.md b/README.md index 8db4919..d75c28f 100644 --- a/README.md +++ b/README.md @@ -2015,6 +2015,7 @@ thread.start() thread.join() # Waits for thread to finish. ``` * **Use `'kwargs=<dict>'` to pass keyword arguments to the function.** +* **Use `'daemon=True'` or the program will not be able to exit while the thread is alive.** ### Lock ```python diff --git a/index.html b/index.html index d600ca4..25a4ab1 100644 --- a/index.html +++ b/index.html @@ -1777,6 +1777,7 @@ thread.join() <span class="hljs-comment"># Waits for thre <ul> <li><strong>Use <code class="python hljs"><span class="hljs-string">'kwargs=<dict>'</span></code> to pass keyword arguments to the function.</strong></li> +<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> </ul> <div><h3 id="lock">Lock</h3><pre><code class="python language-python hljs">lock = RLock() lock.acquire() <span class="hljs-comment"># Waits for lock to be available.</span>