lev.stop

lev

stop()

Force-stop the event loop

Sets the loop's running flag to false, causing lev.run() to exit on the next iteration regardless of active coroutines. Intended for use in signal handlers to implement graceful shutdown with a deadline. Must be called within lev.run().