update examples/_thread/test1.py.

Signed-off-by: 李昂 <liang6516@outlook.com>
This commit is contained in:
李昂 2023-02-19 05:23:33 +00:00 committed by Gitee
parent a41a1830fe
commit 2551ac3fbe
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -27,6 +27,6 @@ _thread.start_new_thread(task1, ())
_thread.start_new_thread(task2, (0.05, 10))
while not task1_finished or not task2_finished:
pass
time.sleep(0.1)
time.sleep(0.5) # wait for threads to exit