PikaStdTask.pyi 820 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #api
  2. from PikaObj import *
  3. import PikaStdData
  4. class Task(TinyObj):
  5. calls = PikaStdData.List()
  6. def __init__():
  7. pass
  8. # regist a function to be called always
  9. def call_always(fun_todo: any):
  10. pass
  11. # regist a function to be called when fun_when() return 'True'
  12. def call_when(fun_todo: any, fun_when: any):
  13. pass
  14. # regist a function to be called periodically
  15. def call_period_ms(fun_todo: any, period_ms: int):
  16. pass
  17. # run all registed function once
  18. def run_once():
  19. pass
  20. # run all registed function forever
  21. def run_forever():
  22. pass
  23. # run all registed function until time is up
  24. def run_until_ms(until_ms: int):
  25. pass
  26. # need be overried to supply the system tick
  27. def platformGetTick():
  28. pass