mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-17 22:20:22 -04:00
cleanup names for dirs
This commit is contained in:
parent
0904ec1dc4
commit
0da3cbd74a
80 changed files with 62 additions and 2263 deletions
|
@ -1,19 +0,0 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from time import sleep
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
|
||||
|
||||
def return_after_5_secs(message):
|
||||
sleep(5)
|
||||
return message
|
||||
|
||||
|
||||
pool = ThreadPoolExecutor(3)
|
||||
future = pool.submit(return_after_5_secs, ('Future message'))
|
||||
|
||||
print(future.done())
|
||||
|
||||
sleep(5)
|
||||
print(future.done())
|
||||
print(future.result())
|
Loading…
Add table
Add a link
Reference in a new issue