Two extra steps in example_simple.tum that sleep for 10s, used to verify that pressing Stop interrupts engaged blocking steps.
18 lines
329 B
Python
18 lines
329 B
Python
from time import sleep
|
|
|
|
def dummy_exit(useless1, useless2):
|
|
return True
|
|
|
|
def exit_exc(useless1, useless2):
|
|
raise Exception('Crash of exit function')
|
|
|
|
def funcToBeExecuted (bla):
|
|
print(bla)
|
|
return bla
|
|
|
|
def funcToBeExecuted2 (bla):
|
|
print(bla)
|
|
return blo
|
|
|
|
def long_wait (sec):
|
|
sleep(sec) |