MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / shutdown

Method shutdown

benches/memory_usage.py:380–396  ·  view source on GitHub ↗

Send shutdown + exit.

(self)

Source from the content-addressed store, hash-verified

378 pass
379
380 def shutdown(self) -> None:
381 """Send shutdown + exit."""
382 self._stopped = True
383 rid = self.send_request("shutdown", {})
384 try:
385 self.wait_for_response(rid, timeout=10)
386 except (TimeoutError, EOFError):
387 pass
388 try:
389 self.send_notification("exit", {})
390 except (BrokenPipeError, OSError):
391 pass
392 try:
393 self._proc.wait(timeout=5)
394 except subprocess.TimeoutExpired:
395 self._proc.kill()
396 self._proc.wait()
397
398 def __del__(self):
399 try:

Callers 4

run_hello_worldFunction · 0.95
run_laravel_modelFunction · 0.95
smoke_full_lifecycleFunction · 0.45
test_shutdownFunction · 0.45

Calls 3

send_requestMethod · 0.95
wait_for_responseMethod · 0.95
send_notificationMethod · 0.95

Tested by 1

test_shutdownFunction · 0.36