# OnApplicationStopping constructor

const OnApplicationStopping()

Annotation to mark a method that should run when the application is stopping.

This is useful for cleaning up resources, shutting down services, and gracefully preparing for application exit.

### Example

    class MyApp {
      @OnApplicationStopping()
      void cleanup() {
        print("Cleaning up resources before shutdown...");
      }
    }

## Implementation

    const OnApplicationStopping();