MCPcopy Create free account
hub / github.com/microsoft/debugpy / _worker

Method _worker

src/debugpy/launcher/output.py:63–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

61 pass
62
63 def _worker(self):
64 while self._fd is not None:
65 try:
66 s = os.read(self._fd, 0x1000)
67 except Exception:
68 break
69 if not len(s):
70 break
71 self._process_chunk(s)
72
73 # Flush any remaining data in the incremental decoder.
74 self._process_chunk(b"", final=True)
75
76 def _process_chunk(self, s, final=False):
77 s = self._decoder.decode(s, final=final)

Callers

nothing calls this directly

Calls 2

_process_chunkMethod · 0.95
readMethod · 0.45

Tested by

no test coverage detected