You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tasks_loop.py 692B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import asyncio
  2. import time
  3. import redis
  4. import os
  5. import copy
  6. import json
  7. import traceback
  8. import inspect
  9. '''
  10. umod
  11. # '''
  12. p=print
  13. async def anop(*a,**kw):pass
  14. def nop(*a,**kw):pass
  15. '''
  16. # '''
  17. # GCLMixin
  18. class globCL():
  19. init_cnt = 0
  20. def __init__(self,*a,**kw):
  21. # for now we are not going to do any weird class stuff
  22. cls = self.__class__
  23. cls.init_cnt += 1
  24. pass
  25. async def persistent_loop(self,*a,**kw):
  26. pass
  27. def run_persistent_loop(self,*a,**kw):
  28. pass
  29. # p("300 globCL.init_cnt:",globCL.init_cnt)
  30. glob_cl = globCL()
  31. # p("400 globCL.init_cnt:",globCL.init_cnt)
  32. # glob_cl_b = globCL()
  33. # p("501 globCL.init_cnt:",globCL.init_cnt)
  34. # print("..",end="\n",flush=True)