MCPcopy Create free account
hub / github.com/shidenggui/easyquant / __run

Method __run

easyquant/event_engine.py:31–39  ·  view source on GitHub ↗

启动引擎

(self)

Source from the content-addressed store, hash-verified

29 self.__handlers = defaultdict(list)
30
31 def __run(self):
32 """启动引擎"""
33 while self.__active:
34 try:
35 event = self.__queue.get(block=True, timeout=1)
36 handle_thread = Thread(target=self.__process, name="EventEngine.__process", args=(event,))
37 handle_thread.start()
38 except Empty:
39 pass
40
41 def __process(self, event):
42 """事件处理"""

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected