Guest User

Untitled

a guest
Oct 16th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. STOP = false
  2.  
  3. def exec():
  4.   global STOP
  5.   ............
  6.   for .........:
  7.     if STOP:
  8.       return
  9.  
  10. def start():
  11.   global STOP
  12.   STOP = false
  13.   .........
  14.  
  15. def stop():
  16.   global STOP
  17.   STOP = true
Advertisement
Add Comment
Please, Sign In to add comment