mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
update examples/_thread/test1.py.
Signed-off-by: 李昂 <liang6516@outlook.com>
This commit is contained in:
parent
a41a1830fe
commit
2551ac3fbe
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user