MCPcopy Index your code
hub / github.com/python/cpython / run

Method run

Lib/test/test_ftplib.py:302–309  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

300 self.__flag.wait()
301
302 def run(self):
303 self.active = True
304 self.__flag.set()
305 while self.active and asyncore.socket_map:
306 self.active_lock.acquire()
307 asyncore.loop(timeout=0.1, count=1)
308 self.active_lock.release()
309 asyncore.close_all(ignore_all=True)
310
311 def stop(self):
312 assert self.active

Callers

nothing calls this directly

Calls 4

setMethod · 0.45
acquireMethod · 0.45
loopMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected