From b37d0b2a0d30c4a2523ff3658be05090a5e3f40d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 5 Dec 2019 08:11:05 +0100 Subject: [PATCH] Threading --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2987d84..12e2a02 100644 --- a/README.md +++ b/README.md @@ -2049,7 +2049,7 @@ with ThreadPoolExecutor(max_workers=None) as executor: # None == `n_core = executor.submit( [, , ...]) ``` -#### Future +#### Future: ```python = .done() # Checks if thread has finished executing. = .result() # Waits for thread to finish and returns result. diff --git a/index.html b/index.html index 52f7b27..7f402f8 100644 --- a/index.html +++ b/index.html @@ -1805,7 +1805,7 @@ lock.release() <Future> = executor.submit(<function> [, <arg_1>, ...]) -

Future

<bool> = <Future>.done()             # Checks if thread has finished executing.
+

Future:

<bool> = <Future>.done()             # Checks if thread has finished executing.
 <obj>  = <Future>.result()           # Waits for thread to finish and returns result.