MCPcopy Create free account
hub / github.com/LOLINTERNETZ/vscodeoffline / update_state_loop

Method update_state_loop

vscoffline/server.py:191–196  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

189 return extension
190
191 def update_state_loop(self):
192 while True:
193 self.update_state()
194 self.loaded.set()
195 log.info(f'Checking for updates in {vsc.Utility.seconds_to_human_time(self.interval)}')
196 time.sleep(self.interval)
197
198 def on_post(self, req, resp):
199 if 'filters' not in req.media or 'criteria' not in req.media['filters'][0] or 'flags' not in req.media:

Callers

nothing calls this directly

Calls 2

update_stateMethod · 0.95
seconds_to_human_timeMethod · 0.80

Tested by

no test coverage detected