post done

This commit is contained in:
Mia von Steinkirch 2020-03-06 01:16:17 -08:00
parent be98abd3b5
commit f47aaa5195
3 changed files with 17 additions and 2 deletions

View file

@ -9,9 +9,9 @@ def return_after_5_secs(message):
return message
pool = ThreadPoolExecutor(3)
future = pool.submit(return_after_5_secs, ("hello"))
print(future.done())
sleep(5)
print(future.done())