feat: Add stop() method to Server for graceful shutdown and IOLoop control by maboloshi · Pull Request #284 · lepture/python-livereload

@maboloshi

- Added a stop() method to livereload.Server to allow proactive shutdown
- Closes all listening HTTP servers and releases bound ports
- Uses asyncio_loop.is_running() to check IOLoop state safely
- Stops IOLoop via add_callback() to ensure thread-safe termination
- Enables better integration with threaded environments

added a commit to maboloshi/LiveReloadPy that referenced this pull request

Jul 10, 2025

@maboloshi