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