MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / poll

Method poll

scripts/test-impact/profile_map_v2.py:149–163  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

147 self.callback_error = None
148
149 def poll(self):
150 self.work = 0
151 if self.cancel is None:
152 return
153 try:
154 answer = self.cancel(self.context)
155 except BaseException as error:
156 # Identity distinguishes a callback's parser-shaped exception from
157 # a parser failure; neither its class nor message is sufficient.
158 self.callback_error = error
159 raise
160 if type(answer) is not bool:
161 raise ProfileMapInvalidArgumentError("cancel must return bool")
162 if answer:
163 raise ProfileMapCancelledError("profile map build cancelled")
164
165 def step(self):
166 self.work += 1

Callers 15

stepMethod · 0.95
parser_cancelMethod · 0.95
terminate_process_treeFunction · 0.45
wait_for_group_exitFunction · 0.45
run_waveFunction · 0.45
wait_responseFunction · 0.45
stop_processFunction · 0.45

Calls 4

cancelMethod · 0.80
typeFunction · 0.50

Tested by 15

terminate_process_treeFunction · 0.36
wait_for_group_exitFunction · 0.36
run_waveFunction · 0.36
wait_responseFunction · 0.36
stop_processFunction · 0.36
reapFunction · 0.36
run_processFunction · 0.36
quiesceFunction · 0.36
run_processFunction · 0.36
wait_daemon_activeFunction · 0.36