MCPcopy Index your code
hub / github.com/RustPython/RustPython / run

Method run

Lib/test/test_poplib.py:229–237  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

227 self.__flag.wait()
228
229 def run(self):
230 self.active = True
231 self.__flag.set()
232 try:
233 while self.active and asyncore.socket_map:
234 with self.active_lock:
235 asyncore.loop(timeout=0.1, count=1)
236 finally:
237 asyncore.close_all(ignore_all=True)
238
239 def stop(self):
240 assert self.active

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
loopMethod · 0.45

Tested by

no test coverage detected