stdtask.py 186 B

123456789101112
  1. from GTestTask import Task
  2. task = Task()
  3. def test1():
  4. print('test1')
  5. def test2():
  6. print('test2')
  7. task.call_always(test1)
  8. task.call_always(test2)
  9. task.run_until_ms(1000)
  10. exit()