MCPcopy Index your code
hub / github.com/InternLM/lmdeploy / stop

Method stop

lmdeploy/pytorch/engine/engine_loop.py:587–594  ·  view source on GitHub ↗

Stop all loops.

(self)

Source from the content-addressed store, hash-verified

585 await cancel_async_tasks(tasks)
586
587 def stop(self):
588 """Stop all loops."""
589 if self.stop_event.is_set():
590 # Already stopped, avoid calling executor.stop() multiple times
591 return
592 self.executor.stop()
593 self.stop_event.set()
594 self.cancel()
595
596 def cancel(self):
597 """Cancel all loops."""

Callers

nothing calls this directly

Calls 2

cancelMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected