mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-18 06:30:23 -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 @@
|
|||
from queue import Queue
|
||||
from threading import Thread
|
||||
|
||||
|
||||
NUM_WORKERS = 4
|
||||
task_queue = Queue()
|
||||
|
||||
|
||||
def worker():
|
||||
while True:
|
||||
address = task_queue.get()
|
||||
run_function(address)
|
||||
task_queue.task_done()
|
||||
|
||||
|
||||
threads = [Thread(target=worker) for _ in range(NUM_WORKERS)]
|
||||
[task_queue.put(item) for item in threads]
|
||||
[thread.start() for thread in threads]
|
||||
task_queue.join()
|
Loading…
Add table
Add a link
Reference in a new issue