MCPcopy Create free account
hub / github.com/FastLED/FastLED / __exit__

Method __exit__

ci/util/pio_process_killer.py:401–410  ·  view source on GitHub ↗
(self, _exc_type: Any, _exc_val: Any, _exc_tb: Any)

Source from the content-addressed store, hash-verified

399 return self
400
401 def __exit__(self, _exc_type: Any, _exc_val: Any, _exc_tb: Any) -> None:
402 # Wait for process to complete if still running
403 if self._proc.poll() is None:
404 try:
405 self._proc.wait(timeout=5)
406 except subprocess.TimeoutExpired:
407 self._proc.kill()
408 self._proc.wait()
409 # Unregister from tracking
410 self.unregister()
411
412
413def run_pio_tracked(

Callers

nothing calls this directly

Calls 4

unregisterMethod · 0.95
killMethod · 0.80
pollMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected