feat: Add stop() method to Server for graceful shutdown and IOLoop control by maboloshi · Pull Request #284 · lepture/python-livereload
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters