Browse Source

auto commit

master
jfinn 9 months ago
parent
commit
7a9048bf07
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      edan_v1/hrld/tasks_loop.py

+ 2
- 2
edan_v1/hrld/tasks_loop.py View File

317
 		print("begin_async")
317
 		print("begin_async")
318
 		loop = asyncio.get_event_loop()
318
 		loop = asyncio.get_event_loop()
319
 		print("begin_async2",loop)
319
 		print("begin_async2",loop)
320
-		loop.create_task(self.persistent_loop())
320
+		loop.ensure_future(self.persistent_loop())
321
 		# loop.create_task(self.persistent_fast_cb_loop_min_timeout())
321
 		# loop.create_task(self.persistent_fast_cb_loop_min_timeout())
322
-		loop.run_until_complete(self.persistent_fast_cb_loop_min_timeout())
322
+		loop.ensure_future(self.persistent_fast_cb_loop_min_timeout())
323
 
323
 
324
 
324
 
325
 
325
 

Loading…
Cancel
Save