Browse Source

Threading

pull/46/head
Jure Šorn 4 years ago
parent
commit
b37d0b2a0d
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -2049,7 +2049,7 @@ with ThreadPoolExecutor(max_workers=None) as executor: # None == `n_core
<Future> = executor.submit(<function> [, <arg_1>, ...])
```
#### Future
#### Future:
```python
<bool> = <Future>.done() # Checks if thread has finished executing.
<obj> = <Future>.result() # Waits for thread to finish and returns result.

2
index.html

@ -1805,7 +1805,7 @@ lock.release()
&lt;Future&gt; = executor.submit(&lt;function&gt; [, &lt;arg_1&gt;, ...])
</code></pre></div>
<div><h4 id="future">Future</h4><pre><code class="python language-python hljs">&lt;bool&gt; = &lt;Future&gt;.done() <span class="hljs-comment"># Checks if thread has finished executing.</span>
<div><h4 id="future">Future:</h4><pre><code class="python language-python hljs">&lt;bool&gt; = &lt;Future&gt;.done() <span class="hljs-comment"># Checks if thread has finished executing.</span>
&lt;obj&gt; = &lt;Future&gt;.result() <span class="hljs-comment"># Waits for thread to finish and returns result.</span>
</code></pre></div>

Loading…
Cancel
Save