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

Method _process_control

custom/fixeddataengine.py:32–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 super(FixedDataEngine, self).__init__(event_engine, clock_engine)
31
32 def _process_control(self):
33
34 while True:
35 try:
36 msg = self.__queue.get(block=True)
37 if msg == "pause":
38 self.is_pause = True
39 else:
40 self.is_pause = False
41 except:
42 pass
43
44 def pause(self):
45 self.__queue.put("pause")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected