You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
12345678910 |
- import time
- from concurrent.futures import ThreadPoolExecutor
- def aa(a):
- print("aaaaaa")
- time.sleep(2)
-
- with ThreadPoolExecutor(max_workers=2) as t:
- while True:
- time.sleep(10)
- t.submit(aa, 1)
|